]> source.dussan.org Git - sonarqube.git/commitdiff
Minor improvement for readability of code
authorEvgeny Mandrikov <mandrikov@gmail.com>
Fri, 10 Feb 2012 11:46:39 +0000 (15:46 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Fri, 10 Feb 2012 11:46:39 +0000 (15:46 +0400)
sonar-batch/src/main/java/org/sonar/batch/DefaultFileLinesContext.java

index 4c998af512c34ada83a8fc8786358ac1d6b1ac99..2965ebe218c225b08e65627f139262107d47f78c 100644 (file)
@@ -30,7 +30,7 @@ import org.sonar.api.measures.Measure;
 import org.sonar.api.measures.Metric;
 import org.sonar.api.measures.PersistenceMode;
 import org.sonar.api.resources.Resource;
-import org.sonar.api.resources.Scopes;
+import org.sonar.api.resources.ResourceUtils;
 import org.sonar.api.utils.KeyValueFormat;
 import org.sonar.api.utils.KeyValueFormat.Converter;
 
@@ -52,7 +52,7 @@ public class DefaultFileLinesContext implements FileLinesContext {
 
   public DefaultFileLinesContext(SonarIndex index, Resource resource) {
     Preconditions.checkNotNull(index);
-    Preconditions.checkArgument(Scopes.isFile(resource));
+    Preconditions.checkArgument(ResourceUtils.isFile(resource));
     this.index = index;
     this.resource = resource;
   }