]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Fix quality flaw
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 15 Apr 2013 08:34:09 +0000 (10:34 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 15 Apr 2013 08:34:09 +0000 (10:34 +0200)
sonar-runner-batch/src/main/java/org/sonar/runner/batch/ProjectReactorBuilder.java

index 53fb3136079e2cdb5a89ef1ac63e96439aa57fa3..e17ffbd43bf5ea059495f3e9e5af85cf26739e19 100644 (file)
@@ -485,7 +485,7 @@ class ProjectReactorBuilder {
       filePattern = pattern.substring(i + 1);
     }
     List<IOFileFilter> filters = new ArrayList<IOFileFilter>();
-    if (pattern.indexOf("*")>=0) {
+    if (pattern.indexOf('*')>=0) {
       filters.add(FileFileFilter.FILE);
     }
     filters.add(new WildcardFileFilter(filePattern));