diff options
author | Zeeshan Asghar <zeeshan.asghar@devfactory.com> | 2016-01-21 15:56:32 +0500 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-01-29 17:01:31 +0100 |
commit | bf071cefa1d04303ae246de745a8856c64b9617f (patch) | |
tree | 8d31b74cadac3271f8519d3d76566f04b2139e45 /sonar-plugin-api | |
parent | 1fc88e490a8db848301e784d53d5170018b6d1e5 (diff) | |
download | sonarqube-bf071cefa1d04303ae246de745a8856c64b9617f.tar.gz sonarqube-bf071cefa1d04303ae246de745a8856c64b9617f.zip |
squid:S1213 members of an interface decleration or class should appear in a pre-defined order
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java index 91b13910a30..9b6f709620d 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java @@ -45,10 +45,6 @@ public abstract class ServletFilter implements Filter { private String url; private String urlToMatch; - public static UrlPattern create(String pattern) { - return new UrlPattern(pattern); - } - private UrlPattern(String url) { Preconditions.checkArgument(!Strings.isNullOrEmpty(url), "Empty url"); this.url = url; @@ -63,6 +59,10 @@ public abstract class ServletFilter implements Filter { code = 4; } } + + public static UrlPattern create(String pattern) { + return new UrlPattern(pattern); + } public boolean matches(String path) { switch (code) { |