simplifying loop
diff --git a/src/main/java/org/apache/easyant/core/services/DefaultPluginService.java b/src/main/java/org/apache/easyant/core/services/DefaultPluginService.java
index 7dd8ab0..698986f 100644
--- a/src/main/java/org/apache/easyant/core/services/DefaultPluginService.java
+++ b/src/main/java/org/apache/easyant/core/services/DefaultPluginService.java
@@ -159,10 +159,7 @@
public void execute() throws BuildException {
Path path = createModulePath(moduleRevisionId.getModuleId());
File antFile = null;
- for (int j = 0; j < report.getConfigurationReport(getMainConf()).getAllArtifactsReports().length; j++) {
- ArtifactDownloadReport artifact = report.getConfigurationReport(getMainConf())
- .getAllArtifactsReports()[j];
-
+ for (ArtifactDownloadReport artifact : report.getConfigurationReport(getMainConf()).getAllArtifactsReports()) {
if ("ant".equals(artifact.getType())) {
antFile = artifact.getLocalFile();
} else if (shouldBeAddedToClasspath(artifact)) {
@@ -614,7 +611,7 @@
}
PatternMatcher patternMatcher = settings.getMatcher(matcher);
- if ("*".equals(resolver)) {
+ if (PatternMatcher.ANY_EXPRESSION.equals(resolver)) {
// search in all resolvers. this can be quite slow for complex
// repository configurations
// with ChainResolvers, since resolvers in chains will be searched