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

performance - remove useless boxing of boolean constants

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

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

    r7894 r8377  
    8080            Class<?> eawtFullScreenUtilities = Class.forName("com.apple.eawt.FullScreenUtilities");
    8181            eawtFullScreenUtilities.getDeclaredMethod("setWindowCanFullScreen",
    82                     new Class[]{Window.class, boolean.class}).invoke(eawtFullScreenUtilities, window, true);
     82                    new Class[]{Window.class, boolean.class}).invoke(eawtFullScreenUtilities, window, Boolean.TRUE);
    8383        } catch (ReflectiveOperationException | SecurityException | IllegalArgumentException e) {
    8484            Main.warn("Failed to register with OSX: " + e);
  • trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java

    r8126 r8377  
    2929            for (Area a : leftHandTrafficPolygons) {
    3030                if (a.contains(ll.lon(), ll.lat()))
    31                     return true;
     31                    return Boolean.TRUE;
    3232            }
    33             return false;
     33            return Boolean.FALSE;
    3434        }
    3535
     
    4040                PolygonIntersection is = Geometry.polygonIntersection(abox, a, 1e-10 /* using deg and not meters */);
    4141                if (is == PolygonIntersection.FIRST_INSIDE_SECOND)
    42                     return true;
     42                    return Boolean.TRUE;
    4343                if (is != PolygonIntersection.OUTSIDE)
    4444                    return null;
    4545            }
    46             return false;
     46            return Boolean.FALSE;
    4747        }
    4848    }
Note: See TracChangeset for help on using the changeset viewer.