Ignore:
Timestamp:
2016-05-15T21:14:06+02:00 (10 years ago)
Author:
Don-vip
Message:

findbugs - fix/suppress most of warnings reported in unit tests + enable low confidence warnings for core

Location:
trunk/test/unit/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/ExifReaderTest.java

    r9672 r10222  
    8686    @Test
    8787    public void testReadDirection() {
    88         Double direction = ExifReader.readDirection(directionSampleFile);
    89         assertEquals(new Double(46.5), direction);
     88        assertEquals(Double.valueOf(46.5), ExifReader.readDirection(directionSampleFile));
    9089    }
    9190
  • trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java

    r10133 r10222  
    1414import org.openstreetmap.josm.JOSMFixture;
    1515import org.openstreetmap.josm.tools.UncheckedParseException;
     16
     17import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1618
    1719/**
     
    192194     */
    193195    @Test
     196    @SuppressFBWarnings(value = "ISC_INSTANTIATE_STATIC_CLASS")
    194197    public void testCoverage() {
    195198        assertNotNull(new DateUtils());
Note: See TracChangeset for help on using the changeset viewer.