diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2018-10-19 15:43:53 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-11-07 20:21:02 +0100 |
commit | d6d4d9b9bc406b58150ecfb438fc926ab7f34e80 (patch) | |
tree | ec629444cd582ae8ea9bf29084a73d4595733439 /sonar-scanner-engine/src/main/java | |
parent | 945beaac05d9a6b77b300ce877d4046f5918eded (diff) | |
download | sonarqube-d6d4d9b9bc406b58150ecfb438fc926ab7f34e80.tar.gz sonarqube-d6d4d9b9bc406b58150ecfb438fc926ab7f34e80.zip |
Improve code quality
Diffstat (limited to 'sonar-scanner-engine/src/main/java')
3 files changed, 4 insertions, 8 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/cpd/CpdExecutor.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/cpd/CpdExecutor.java index 1e7f07ec041..f0b923791a0 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/cpd/CpdExecutor.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/cpd/CpdExecutor.java @@ -233,14 +233,14 @@ public class CpdExecutor { } private static class FileBlocks { + private final DefaultInputFile inputFile; + private final Collection<Block> blocks; + public FileBlocks(DefaultInputFile inputFile, Collection<Block> blocks) { this.inputFile = inputFile; this.blocks = blocks; } - private DefaultInputFile inputFile; - private Collection<Block> blocks; - public DefaultInputFile getInputFile() { return inputFile; } diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/cpd/JavaCpdBlockIndexerSensor.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/cpd/JavaCpdBlockIndexerSensor.java index 8b2f2d011a7..766639a9470 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/cpd/JavaCpdBlockIndexerSensor.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/cpd/JavaCpdBlockIndexerSensor.java @@ -32,7 +32,6 @@ import org.sonar.api.CoreProperties; import org.sonar.api.batch.Phase; import org.sonar.api.batch.fs.FilePredicates; import org.sonar.api.batch.fs.InputFile; -import org.sonar.api.batch.fs.internal.DefaultInputFile; import org.sonar.api.batch.sensor.Sensor; import org.sonar.api.batch.sensor.SensorContext; import org.sonar.api.batch.sensor.SensorDescriptor; diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/sensor/DefaultSensorContext.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/sensor/DefaultSensorContext.java index ed4b6859911..3d5a32dbcdf 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/sensor/DefaultSensorContext.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/sensor/DefaultSensorContext.java @@ -52,7 +52,6 @@ import org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable; import org.sonar.api.config.Configuration; import org.sonar.api.config.Settings; import org.sonar.api.utils.Version; -import org.sonar.scanner.scan.branch.BranchConfiguration; import org.sonar.scanner.sensor.noop.NoOpNewAdHocRule; import org.sonar.scanner.sensor.noop.NoOpNewAnalysisError; import org.sonar.scanner.sensor.noop.NoOpNewCpdTokens; @@ -80,10 +79,9 @@ public class DefaultSensorContext implements SensorContext { private final InputModule module; private final SonarRuntime sonarRuntime; private final Configuration config; - private final BranchConfiguration branchConfiguration; public DefaultSensorContext(InputModule module, Configuration config, Settings mutableSettings, FileSystem fs, ActiveRules activeRules, - AnalysisMode analysisMode, SensorStorage sensorStorage, SonarRuntime sonarRuntime, BranchConfiguration branchConfiguration) { + AnalysisMode analysisMode, SensorStorage sensorStorage, SonarRuntime sonarRuntime) { this.module = module; this.config = config; this.mutableSettings = mutableSettings; @@ -92,7 +90,6 @@ public class DefaultSensorContext implements SensorContext { this.analysisMode = analysisMode; this.sensorStorage = sensorStorage; this.sonarRuntime = sonarRuntime; - this.branchConfiguration = branchConfiguration; } @Override |