Small optimization with duplicate search paths

This commit is contained in:
Dave Syer
2016-02-16 10:24:15 +00:00
parent 8125007700
commit f1b4f5c98e

View File

@@ -177,7 +177,7 @@ public class AbstractScmAccessor implements ResourceLoaderAware {
String[] locations = this.searchPaths;
if (locations == null || locations.length == 0) {
locations = DEFAULT_LOCATIONS;
} else {
} else if (locations!=DEFAULT_LOCATIONS) {
locations = StringUtils.concatenateStringArrays(DEFAULT_LOCATIONS, locations);
}
Collection<String> output = new LinkedHashSet<String>();