aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-03-14 14:38:25 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-03-14 14:38:25 +0100
commit676fc571499ea4e4c3e5beb01baea1f76608f8ff (patch)
tree546eae3611cadb08ab5b586fb0907b08479f4bc7
parent1567c1066dd3001a96d0ac0e459d7d6e87910d5a (diff)
downloadsonarqube-676fc571499ea4e4c3e5beb01baea1f76608f8ff.tar.gz
sonarqube-676fc571499ea4e4c3e5beb01baea1f76608f8ff.zip
Fix quality flaws
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/ResourceKeyMigration.java5
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/OrPredicate.java1
2 files changed, 2 insertions, 4 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/ResourceKeyMigration.java b/sonar-batch/src/main/java/org/sonar/batch/index/ResourceKeyMigration.java
index 3647287bb3e..3c1266e58f3 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/index/ResourceKeyMigration.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/index/ResourceKeyMigration.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.fs.FilePredicates;
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.fs.InputFile;
import org.sonar.api.batch.fs.internal.DefaultInputFile;
@@ -91,8 +90,8 @@ public class ResourceKeyMigration implements BatchComponent {
}
private void migrateFiles(Project module, Map<String, InputFile> deprecatedFileKeyMapper, Map<String, InputFile> deprecatedTestKeyMapper,
- Map<String, String> deprecatedDirectoryKeyMapper,
- int moduleId) {
+ Map<String, String> deprecatedDirectoryKeyMapper,
+ int moduleId) {
// Find all FIL or CLA resources for this module
StringBuilder hql = new StringBuilder().append("from ")
.append(ResourceModel.class.getSimpleName())
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/OrPredicate.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/OrPredicate.java
index aa442fbb3b8..a887c631cf2 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/OrPredicate.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/OrPredicate.java
@@ -20,7 +20,6 @@
package org.sonar.api.batch.fs.internal;
import org.sonar.api.batch.fs.FilePredicate;
-import org.sonar.api.batch.fs.FilePredicates;
import org.sonar.api.batch.fs.InputFile;
import java.util.Arrays;