Changeset 15756 in josm


Ignore:
Timestamp:
2020-01-25T09:30:02+01:00 (5 years ago)
Author:
GerdP
Message:

fix pmd issue: Array initialization can be written shorter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java

    r15753 r15756  
    100100
    101101        final Panel latlonPanel = new Panel(new BorderLayout());
    102         final String[] labels = new String[]{tr("min lat"), tr("min lon"), tr("max lat"), tr("max lon")};
    103         final String[] positions = new String[]{BorderLayout.SOUTH, BorderLayout.WEST, BorderLayout.NORTH, BorderLayout.EAST};
     102        final String[] labels = {tr("min lat"), tr("min lon"), tr("max lat"), tr("max lon")};
     103        final String[] positions = {BorderLayout.SOUTH, BorderLayout.WEST, BorderLayout.NORTH, BorderLayout.EAST};
    104104        for (int i = 0; i < latlon.length; i++) {
    105105            final Panel panel = new Panel(new GridBagLayout());
Note: See TracChangeset for help on using the changeset viewer.