Changeset 8a89b3d for core


Ignore:
Timestamp:
Feb 15, 2017 5:01:02 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
380f55a
Parents:
f2ae1bf
Message:

Fix calls to Class.newInstance() deprecated in Java 9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/kademlia/KBucketSet.java

    rf2ae1bf r8a89b3d  
    638638        T rv;
    639639        try {
    640             rv = (T) _us.getClass().newInstance();
     640            rv = (T) _us.getClass().getDeclaredConstructor().newInstance();
    641641        } catch (Exception e) {
    642642            _log.error("fail", e);
Note: See TracChangeset for help on using the changeset viewer.