Changeset 36487 in osm


Ignore:
Timestamp:
2026-02-12T22:40:09+01:00 (39 hours ago)
Author:
stoecker
Message:

fix deprecation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/MicrosoftStreetside/test/unit/org/openstreetmap/josm/plugins/streetside/utils/TestUtil.java

    r36228 r36487  
    33
    44import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertFalse;
    56import static org.junit.jupiter.api.Assertions.assertTrue;
    67
     
    6667            final Constructor<?> constructor = c.getDeclaredConstructors()[0];
    6768            // constructor has to be private
    68             assertTrue(!constructor.isAccessible() && Modifier.isPrivate(constructor.getModifiers()));
     69            assertFalse(constructor.canAccess(null));
     70            assertTrue(Modifier.isPrivate(constructor.getModifiers()));
    6971            constructor.setAccessible(true);
     72            assertTrue(constructor.canAccess(null));
    7073            // Call private constructor for code coverage
    7174            constructor.newInstance();
Note: See TracChangeset for help on using the changeset viewer.