Ignore:
Timestamp:
2017-12-17T00:42:54+01:00 (22 months ago)
Author:
Don-vip
Message:

enable PMD rule OptimizableToArrayCall

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/template_engine/TemplateParser.java

    r13003 r13206  
    6161                templateEntry = parseVariable();
    6262            } else if (endTokens.contains(token.getType()))
    63                 return CompoundTemplateEntry.fromArray(entries.toArray(new TemplateEntry[entries.size()]));
     63                return CompoundTemplateEntry.fromArray(entries.toArray(new TemplateEntry[0]));
    6464            else if (token.getType() == TokenType.TEXT) {
    6565                tokenizer.nextToken();
Note: See TracChangeset for help on using the changeset viewer.