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

enable PMD rule OptimizableToArrayCall

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java

    r13182 r13206  
    358358    public ProjectionPreference() {
    359359        this.projectionCombo = new JosmComboBox<>(
    360             projectionChoices.toArray(new ProjectionChoice[projectionChoices.size()]));
     360            projectionChoices.toArray(new ProjectionChoice[0]));
    361361        this.coordinatesCombo = new JosmComboBox<>(
    362362                CoordinateFormatManager.getCoordinateFormats().toArray(new ICoordinateFormat[0]));
Note: See TracChangeset for help on using the changeset viewer.