aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-batch-protocol')
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java9
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java11
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/QProfile.java4
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) {