Aggregate returns first override with no index, and then starts at 2.
@@ -36,12 +36,16 @@ public class CodeLocationNameManager {
}
}
- public String getNextCodeLocationOverrideName() {
+ public String getNextCodeLocationOverrideName() { //returns "override", then "override 2", then "override 3", etc
+ givenCodeLocationOverrideCount++;
+ if (givenCodeLocationOverrideCount == 1) {
+ return detectConfiguration.getCodeLocationNameOverride();
+ } else {
final String base = detectConfiguration.getCodeLocationNameOverride();
final String codeLocationName = base + " " + Integer.toString(givenCodeLocationOverrideCount);
- givenCodeLocationOverrideCount++;
return codeLocationName;
}
+ }
public String createAggregateCodeLocationName() {
if (useCodeLocationOverride()) {
