diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-12-31 10:17:26 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-12-31 10:17:26 +0100 |
commit | 076ef00a0d479abe7053d4dd29842edb453b60f8 (patch) | |
tree | d8a2599186578aecec75638a2395b721fa8dcdcb /sonar-plugin-api | |
parent | 41b110181e9d459451a85dc6fa3be4a8b497ea6b (diff) | |
download | sonarqube-076ef00a0d479abe7053d4dd29842edb453b60f8.tar.gz sonarqube-076ef00a0d479abe7053d4dd29842edb453b60f8.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/resources/DefaultProjectFileSystem.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/DefaultProjectFileSystem.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/DefaultProjectFileSystem.java index 7ab9dc30d4d..0850d818fa9 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/DefaultProjectFileSystem.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/DefaultProjectFileSystem.java @@ -20,10 +20,12 @@ package org.sonar.api.resources; import com.google.common.base.Predicate; -import com.google.common.collect.*; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.Iterables; +import com.google.common.collect.Lists; +import com.google.common.collect.Sets; import org.apache.commons.io.FileUtils; import org.apache.commons.io.FilenameUtils; -import org.apache.commons.io.IOCase; import org.apache.commons.io.filefilter.*; import org.apache.commons.lang.CharEncoding; import org.apache.commons.lang.StringUtils; @@ -41,7 +43,7 @@ import java.util.*; /** * An implementation of {@link ProjectFileSystem}. * For internal use only. - * + * * @since 1.10 * @deprecated in 2.8. In fact this class should not be located in sonar-plugin-api and most of the methods were overridden by a component in sonar-batch. */ @@ -215,7 +217,7 @@ public class DefaultProjectFileSystem implements ProjectFileSystem { WildcardPattern[] exclusionPatterns = getExclusionPatterns(applyExclusionPatterns); IOFileFilter initialFilesFilter = TrueFileFilter.INSTANCE; - if (initialFiles!=null && !initialFiles.isEmpty()) { + if (initialFiles != null && !initialFiles.isEmpty()) { initialFilesFilter = new FileSelectionFilter(initialFiles); } @@ -313,7 +315,7 @@ public class DefaultProjectFileSystem implements ProjectFileSystem { /** * getRelativePath("c:/foo/src/my/package/Hello.java", "c:/foo/src") is "my/package/Hello.java" - * + * * @return null if file is not in dir (including recursive subdirectories) */ public static String getRelativePath(File file, File dir) { @@ -325,7 +327,7 @@ public class DefaultProjectFileSystem implements ProjectFileSystem { * <p> * Relative path is composed of slashes. Windows backslaches are replaced by / * </p> - * + * * @return null if file is not in dir (including recursive subdirectories) */ public static String getRelativePath(File file, List<File> dirs) { |