]> source.dussan.org Git - sonarqube.git/commitdiff
Improve quality
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Fri, 13 Jan 2017 15:16:42 +0000 (16:16 +0100)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Fri, 27 Jan 2017 15:26:30 +0000 (16:26 +0100)
sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/PathPatternPredicate.java
sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/filesystem/FileIndexer.java
sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/measures/MeasuresMediumTest.java

index 45766537a8b6627f491e21a592bcc4137ced3a90..299fb6c9821953bc3cbe3771b9f1c9cbcef03ce4 100644 (file)
@@ -20,7 +20,6 @@
 package org.sonar.api.batch.fs.internal;
 
 import org.sonar.api.batch.fs.IndexedFile;
-import org.sonar.api.batch.fs.InputFile;
 
 /**
  * @since 4.2
index 595773f62b536a76ed798850f0b45d78963d6e76..046a0a448a0bf9b5dd1d6acb7be5e61fb0cc32d4 100644 (file)
@@ -136,7 +136,7 @@ public class FileIndexer {
     }
   }
 
-  private void indexParentDir(DefaultModuleFileSystem fileSystem, IndexedFile indexedFile) {
+  private static void indexParentDir(DefaultModuleFileSystem fileSystem, IndexedFile indexedFile) {
     File parentDir = indexedFile.file().getParentFile();
     String relativePath = new PathResolver().relativePath(fileSystem.baseDir(), parentDir);
     if (relativePath != null) {
index b9fd9dda60356072c977a289693fa72497d7ff73..de4ecaac49678d5c0c5c591f2720deb0e324e1da 100644 (file)
@@ -27,7 +27,6 @@ import java.util.Map;
 import org.apache.commons.io.FileUtils;
 import org.junit.After;
 import org.junit.Before;
-import org.junit.Ignore;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TemporaryFolder;