Ignore:
Timestamp:
2015-05-17T04:02:42+02:00 (9 years ago)
Author:
Don-vip
Message:

performance - remove useless boxing of boolean constants

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CloseChangesetAction.java

    r8291 r8377  
    8484        private UserInfo userInfo;
    8585
    86         public DownloadOpenChangesetsTask() {
    87             super(tr("Downloading open changesets ...", false /* don't ignore exceptions */));
     86        private DownloadOpenChangesetsTask() {
     87            super(tr("Downloading open changesets ..."), false /* don't ignore exceptions */);
    8888        }
    8989
  • trunk/src/org/openstreetmap/josm/actions/DistributeAction.java

    r8247 r8377  
    111111     * @return true in this case
    112112     */
    113     private Boolean checkDistributeWay(Collection<Way> ways, Collection<Node> nodes) {
     113    private boolean checkDistributeWay(Collection<Way> ways, Collection<Node> nodes) {
    114114        if(ways.size() == 1 && nodes.size() <= 2) {
    115115            Way w = ways.iterator().next();
  • trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java

    r8308 r8377  
    5757                tr("Adjust the position of this imagery layer"), Main.map,
    5858                cursor);
    59         putValue("toolbar", false);
     59        putValue("toolbar", Boolean.FALSE);
    6060        this.layer = layer;
    6161    }
  • trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java

    r6889 r8377  
    3636        super(name, "mapmode/"+iconName, tooltip, shortcut, false);
    3737        this.cursor = cursor;
    38         putValue("active", false);
     38        putValue("active", Boolean.FALSE);
    3939    }
    4040
     
    5353     */
    5454    public void enterMode() {
    55         putValue("active", true);
     55        putValue("active", Boolean.TRUE);
    5656        Main.map.mapView.setNewCursor(cursor, this);
    5757        updateStatusLine();
     
    6262     */
    6363    public void exitMode() {
    64         putValue("active", false);
     64        putValue("active", Boolean.FALSE);
    6565        Main.map.mapView.resetCursor(this);
    6666    }
  • trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java

    r8345 r8377  
    505505                if (s.mode == SearchMode.replace) {
    506506                    if (matcher.match(osm)) {
    507                         p.set(osm, true);
     507                        p.set(osm, Boolean.TRUE);
    508508                    } else {
    509                         p.set(osm, false);
     509                        p.set(osm, Boolean.FALSE);
    510510                    }
    511511                } else if (s.mode == SearchMode.add && !p.get(osm) && matcher.match(osm)) {
    512                     p.set(osm, true);
     512                    p.set(osm, Boolean.TRUE);
    513513                } else if (s.mode == SearchMode.remove && p.get(osm) && matcher.match(osm)) {
    514                     p.set(osm, false);
     514                    p.set(osm, Boolean.FALSE);
    515515                } else if (s.mode == SearchMode.in_selection && p.get(osm) && !matcher.match(osm)) {
    516                     p.set(osm, false);
     516                    p.set(osm, Boolean.FALSE);
    517517                }
    518518            }
     
    523523                    tr("Error"),
    524524                    JOptionPane.ERROR_MESSAGE
    525 
    526525            );
    527526        }
Note: See TracChangeset for help on using the changeset viewer.