Changeset 11114 in josm for trunk


Ignore:
Timestamp:
2016-10-09T23:50:56+02:00 (3 years ago)
Author:
Don-vip
Message:

sonar - minor fixes

Location:
trunk
Files:
2 edited

Legend:

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

    r10662 r11114  
    7777                .setIcon(JOptionPane.INFORMATION_MESSAGE)
    7878                .show();
    79         return;
    8079    }
    8180
  • trunk/test/performance/org/openstreetmap/josm/data/osm/KeyValuePerformanceTest.java

    r10758 r11114  
    22package org.openstreetmap.josm.data.osm;
    33
     4import static org.junit.Assert.assertEquals;
    45import static org.junit.Assert.assertFalse;
    56import static org.junit.Assert.assertNotSame;
     
    6667        for (int i = 0; i < STRING_INTERN_TESTS; i++) {
    6768            // warm up
    68             assertTrue(str1.equals(str1B));
     69            assertEquals(str1, str1B);
    6970        }
    7071
     
    7778        timer = PerformanceTestUtils.startTimer("str1.equals(str2) succeeds (without intern)");
    7879        for (int i = 0; i < STRING_INTERN_TESTS; i++) {
    79             assertTrue(str1.equals(str1B));
     80            assertEquals(str1, str1B);
    8081        }
    8182        timer.done();
Note: See TracChangeset for help on using the changeset viewer.