Changeset 10208 in josm for trunk/test


Ignore:
Timestamp:
2016-05-14T02:38:41+02:00 (4 years ago)
Author:
Don-vip
Message:

see #11924 - Java 9 - JDK-6850612 deprecates Class.newInstance() ==> replace it by Class.getConstructor().newInstance()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RemoteControlTest.java

    r8876 r10208  
    6868        TrustManager[] trustAllCerts = new TrustManager[] {
    6969            new X509TrustManager() {
     70                @Override
    7071                public X509Certificate[] getAcceptedIssuers() {
    7172                    return null;
    7273                }
    7374
     75                @Override
    7476                public void checkClientTrusted(X509Certificate[] certs, String authType) {
    7577                }
    7678
     79                @Override
    7780                public void checkServerTrusted(X509Certificate[] certs, String authType) {
    7881                }
     
    141144                }
    142145                assert responseBody.toString().contains(RequestProcessor.getUsageAsHtml());
    143             } catch (IllegalAccessException | InstantiationException e) {
     146            } catch (ReflectiveOperationException e) {
    144147                e.printStackTrace();
    145148                fail(e.getMessage());
Note: See TracChangeset for help on using the changeset viewer.