Ignore:
Timestamp:
2015-05-16T15:13:38+02:00 (11 years ago)
Author:
Don-vip
Message:

fix Findbugs performance issues

File:
1 edited

Legend:

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

    r8291 r8365  
    187187            final Matcher m = Pattern.compile("(\\d+)x(\\d+)(([+-])(\\d+)([+-])(\\d+))?").matcher(arg);
    188188            if (m.matches()) {
    189                 int w = Integer.valueOf(m.group(1));
    190                 int h = Integer.valueOf(m.group(2));
     189                int w = Integer.parseInt(m.group(1));
     190                int h = Integer.parseInt(m.group(2));
    191191                int x = screenDimension.x, y = screenDimension.y;
    192192                if (m.group(3) != null) {
    193                     x = Integer.valueOf(m.group(5));
    194                     y = Integer.valueOf(m.group(7));
     193                    x = Integer.parseInt(m.group(5));
     194                    y = Integer.parseInt(m.group(7));
    195195                    if ("-".equals(m.group(4))) {
    196196                        x = screenDimension.x + screenDimension.width - x - w;
Note: See TracChangeset for help on using the changeset viewer.