diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-05-15 16:36:31 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-05-15 16:43:51 +0200 |
commit | aa0cc3c59c5c4d4efe52edc8684ff3c224d745de (patch) | |
tree | 23417de59229cb9dec97bb1f3f8c65991979ceea /sonar-batch | |
parent | acae10d3734453c0555c1d11106ec44553b5382f (diff) | |
download | sonarqube-aa0cc3c59c5c4d4efe52edc8684ff3c224d745de.tar.gz sonarqube-aa0cc3c59c5c4d4efe52edc8684ff3c224d745de.zip |
Fix quality flaws
Diffstat (limited to 'sonar-batch')
3 files changed, 9 insertions, 6 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginExploder.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginExploder.java index 3ecb3e244c8..b11df16d984 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginExploder.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginExploder.java @@ -20,7 +20,7 @@ package org.sonar.batch.bootstrap; import org.apache.commons.io.FileUtils; -import org.sonar.api.BatchComponent; +import org.sonar.api.BatchSide; import org.sonar.api.utils.ZipUtils; import org.sonar.core.platform.ExplodedPlugin; import org.sonar.core.platform.PluginExploder; @@ -31,7 +31,8 @@ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; -public class BatchPluginExploder extends PluginExploder implements BatchComponent { +@BatchSide +public class BatchPluginExploder extends PluginExploder { private final FileCache fileCache; diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginPredicate.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginPredicate.java index 0cd7f1c62e7..49113fabe75 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginPredicate.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginPredicate.java @@ -24,7 +24,7 @@ import com.google.common.base.Predicate; import com.google.common.base.Splitter; import com.google.common.collect.Lists; import org.apache.commons.lang.StringUtils; -import org.sonar.api.BatchComponent; +import org.sonar.api.BatchSide; import org.sonar.api.CoreProperties; import org.sonar.api.config.Settings; import org.sonar.api.utils.log.Logger; @@ -41,7 +41,8 @@ import static com.google.common.collect.Sets.newHashSet; /** * Filters the plugins to be enabled during analysis */ -public class BatchPluginPredicate implements Predicate<String>, BatchComponent { +@BatchSide +public class BatchPluginPredicate implements Predicate<String>{ private static final Logger LOG = Loggers.get(BatchPluginPredicate.class); diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PluginInstaller.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PluginInstaller.java index 97eb513d4a6..6a20ce07785 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PluginInstaller.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PluginInstaller.java @@ -19,13 +19,14 @@ */ package org.sonar.batch.bootstrap; -import org.sonar.api.BatchComponent; +import org.sonar.api.BatchSide; import org.sonar.api.Plugin; import org.sonar.core.platform.PluginInfo; import java.util.Map; -public interface PluginInstaller extends BatchComponent { +@BatchSide +public interface PluginInstaller { /** * Gets the list of plugins installed on server and downloads them if not |