aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-11-05 23:20:32 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-11-05 23:20:32 +0100
commit6e6cea30338f31063d68fcd867946e09d60a6006 (patch)
treeefa0671a5faf97d900d9bc9bd35e1f165e9e556a /sonar-batch/src
parent2bdd7679edce5c08f5d9ee8f232bd2f96d7973e7 (diff)
downloadsonarqube-6e6cea30338f31063d68fcd867946e09d60a6006.tar.gz
sonarqube-6e6cea30338f31063d68fcd867946e09d60a6006.zip
Fix some quality flaws
Diffstat (limited to 'sonar-batch/src')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectExclusions.java5
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectSettings.java1
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java2
3 files changed, 3 insertions, 5 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectExclusions.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectExclusions.java
index 9b078d2f249..a46354e9dd2 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectExclusions.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectExclusions.java
@@ -24,7 +24,6 @@ import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sonar.api.BatchComponent;
-import org.sonar.api.batch.InstantiationStrategy;
import org.sonar.api.batch.bootstrap.ProjectBuilder;
import org.sonar.api.batch.bootstrap.ProjectDefinition;
import org.sonar.api.batch.bootstrap.ProjectReactor;
@@ -50,8 +49,8 @@ public class ProjectExclusions implements BatchComponent {
}
public ProjectExclusions(Settings settings, ProjectReactor reactor) {
- this(settings, reactor, new ProjectBuilder[0]);
- }
+ this(settings, reactor, new ProjectBuilder[0]);
+ }
public void start() {
LOG.info("Apply project exclusions");
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectSettings.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectSettings.java
index 9a35a3ef117..871a3a5fde1 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectSettings.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectSettings.java
@@ -61,7 +61,6 @@ public class ProjectSettings extends Settings {
addBuildProperties(project);
addEnvironmentVariables();
addSystemProperties();
- //addProgrammaticProperties();
return this;
}
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java
index 9f7490501bc..e10fc311e2e 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java
@@ -30,7 +30,6 @@ import org.slf4j.LoggerFactory;
import org.sonar.api.BatchComponent;
import org.sonar.api.CoreProperties;
import org.sonar.api.config.Settings;
-import org.sonar.api.platform.Server;
import org.sonar.api.utils.HttpDownloader;
import org.sonar.api.utils.SonarException;
import org.sonar.batch.bootstrapper.EnvironmentInformation;
@@ -45,6 +44,7 @@ import java.util.Date;
/**
* TODO extends Server when removing the deprecated org.sonar.batch.ServerMetadata
+ *
* @since 3.4
*/
public class ServerClient implements BatchComponent {