diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-29 15:53:56 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-29 19:01:12 +0200 |
commit | 501289ca85e1c8dd21d5e0ba5f457b40ee62f5ef (patch) | |
tree | ba5b06c4357edb58ec3f248c6fa12324c1ec71ca /sonar-batch-protocol | |
parent | fcf0d15e049e9c6e647fae628dc0e2bc17d078b6 (diff) | |
download | sonarqube-501289ca85e1c8dd21d5e0ba5f457b40ee62f5ef.tar.gz sonarqube-501289ca85e1c8dd21d5e0ba5f457b40ee62f5ef.zip |
Quality flaws
- do not declare multiple variables on same line
- fix imports
Diffstat (limited to 'sonar-batch-protocol')
3 files changed, 17 insertions, 7 deletions
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java index 1571119eb99..167f7aabd87 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java @@ -26,8 +26,13 @@ import java.util.HashMap; import java.util.Map; public class ActiveRule { - private final String repositoryKey, ruleKey, templateRuleKey; - private final String name, severity, internalKey, language; + private final String repositoryKey; + private final String ruleKey; + private final String templateRuleKey; + private final String name; + private final String severity; + private final String internalKey; + private final String language; private final Map<String, String> params = new HashMap<>(); public ActiveRule(String repositoryKey, String ruleKey, @Nullable String templateRuleKey, String name, @Nullable String severity, diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java index 803560c176a..9cff3783ede 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java @@ -19,12 +19,15 @@ */ package org.sonar.batch.protocol.input; -import org.sonar.batch.protocol.GsonHelper; - +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; import javax.annotation.CheckForNull; import javax.annotation.Nullable; - -import java.util.*; +import org.sonar.batch.protocol.GsonHelper; /** * Container for all project data going from server to batch. diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/QProfile.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/QProfile.java index 4c6b0191046..3e98e0ffb5a 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/QProfile.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/QProfile.java @@ -23,7 +23,9 @@ import java.util.Date; public class QProfile { - private final String key, name, language; + private final String key; + private final String name; + private final String language; private final Date rulesUpdatedAt; public QProfile(String key, String name, String language, Date rulesUpdatedAt) { |