diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-02 14:12:34 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-02 14:12:34 +0200 |
commit | a1d9480ac376955a23c3b23e6237a587139d86bb (patch) | |
tree | 180bb3409ca09fa78344e1a0f82dd1f38ec739cd /sonar-batch/src | |
parent | 259fa0a5f2076aad072ea5f83980948553089fa8 (diff) | |
download | sonarqube-a1d9480ac376955a23c3b23e6237a587139d86bb.tar.gz sonarqube-a1d9480ac376955a23c3b23e6237a587139d86bb.zip |
Fix quality flaws
Diffstat (limited to 'sonar-batch/src')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/deprecated/ResourceFilters.java | 2 | ||||
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/report/ActiveRulesPublisher.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/deprecated/ResourceFilters.java b/sonar-batch/src/main/java/org/sonar/batch/deprecated/ResourceFilters.java index f60713506d7..beeb5123a85 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/deprecated/ResourceFilters.java +++ b/sonar-batch/src/main/java/org/sonar/batch/deprecated/ResourceFilters.java @@ -41,7 +41,7 @@ public class ResourceFilters { check(logger, filters); } - private void check(Logger logger, ResourceFilter[] filters) { + private static void check(Logger logger, ResourceFilter[] filters) { if (filters.length > 0) { logger.warn("ResourceFilters are not supported since version 4.2: " + Joiner.on(", ").join(filters)); } diff --git a/sonar-batch/src/main/java/org/sonar/batch/report/ActiveRulesPublisher.java b/sonar-batch/src/main/java/org/sonar/batch/report/ActiveRulesPublisher.java index b31bb9b3197..b7097b3a280 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/report/ActiveRulesPublisher.java +++ b/sonar-batch/src/main/java/org/sonar/batch/report/ActiveRulesPublisher.java @@ -43,7 +43,7 @@ public class ActiveRulesPublisher implements ReportPublisherStep { writer.writeActiveRules(activeRuleMessages); } - private class ToMessage implements Function<ActiveRule, BatchReport.ActiveRule> { + private static class ToMessage implements Function<ActiveRule, BatchReport.ActiveRule> { private final BatchReport.ActiveRule.Builder builder = BatchReport.ActiveRule.newBuilder(); @Override |