Changeset 8a89b3d for router


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
  • router/java/src/org/cybergarage/upnp/UPnP.java

    rf2ae1bf r8a89b3d  
    270270                                continue;
    271271                        try {
    272                                 parser = (Parser) Class.forName(parserClass[i]).newInstance();
     272                                parser = (Parser) Class.forName(parserClass[i]).getDeclaredConstructor().newInstance();
    273273                                return parser;
    274274                        } catch (Throwable e) {
Note: See TracChangeset for help on using the changeset viewer.