summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorZeeshan Asghar <zeeshan.asghar@devfactory.com>2016-01-21 15:56:32 +0500
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-01-29 17:01:31 +0100
commitbf071cefa1d04303ae246de745a8856c64b9617f (patch)
tree8d31b74cadac3271f8519d3d76566f04b2139e45 /sonar-plugin-api
parent1fc88e490a8db848301e784d53d5170018b6d1e5 (diff)
downloadsonarqube-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.java8
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) {