]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3644 Remove obvious issues
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 11 Sep 2013 08:10:05 +0000 (10:10 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 11 Sep 2013 08:10:05 +0000 (10:10 +0200)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/ignore/IgnoreIssuesConfiguration.java
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/ignore/IgnoreIssuesPlugin.java
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/ignore/scanner/RegexpScanner.java

index f4ebdcf8ab20a823ea525c114dff1d159b2b5511..fe968e162b9ceefb8205dee25fbc67d56722daae 100644 (file)
@@ -31,7 +31,8 @@ import java.util.List;
 
 public final class IgnoreIssuesConfiguration {
 
-  public static final String CONFIG_DOCUMENTATION_LINK = "More information on the <a href=\"http://docs.codehaus.org/display/SONAR/Project+Administration#ProjectAdministration-IgnoringIssues\">Project Administration page</a>.<br/>";
+  public static final String CONFIG_DOCUMENTATION_LINK = "More information on the "
+    + "<a href=\"http://docs.codehaus.org/display/SONAR/Project+Administration#ProjectAdministration-IgnoringIssues\">Project Administration page</a>.<br/>";
 
   public static final String SUB_CATEGORY_IGNORE_ISSUES = "Issues";
 
@@ -52,7 +53,9 @@ public final class IgnoreIssuesConfiguration {
   public static final String PATTERNS_ALLFILE_KEY = CORE_KEY_PREFIX + ALLFILE_SUFFIX;
   public static final String FILE_REGEXP = "fileRegexp";
 
-  private IgnoreIssuesConfiguration() {}
+  private IgnoreIssuesConfiguration() {
+    // static configuration declaration only
+  }
 
   static final int LARGE_SIZE = 20;
   static final int SMALL_SIZE = 10;
index ea929d517bdb7676d48e0ae948f287dcc1ee6e6f..9054563223b5824cb2cca0c083c3dcb7e2312d69 100644 (file)
@@ -29,7 +29,9 @@ import java.util.List;
 
 public final class IgnoreIssuesPlugin {
 
-  private IgnoreIssuesPlugin() {}
+  private IgnoreIssuesPlugin() {
+    // static extension declaration only
+  }
 
   public static List<?> getExtensions() {
     ImmutableList.Builder<Object> extensions = ImmutableList.builder();
index e25ec67b0479c802303cbd440f4e36e2e33d8c74..98985fa2992eedc3b07cb118bc506a1e48a523d4 100644 (file)
@@ -161,7 +161,7 @@ public class RegexpScanner implements BatchExtension {
     }
 
     public LineRange toLineRange() {
-      return new LineRange(start, (end == -1 ? fileLength : end));
+      return new LineRange(start, end == -1 ? fileLength : end);
     }
 
   }