locationtech / udig-platform

uDig parent project containing all core components. More plugins can be found in community repos: http://github.com/uDig-Community
http://udig.refractions.net
190 stars 133 forks source link

Fix deprected usage if 'newInstance' #660

Open sschulz92 opened 2 years ago

sschulz92 commented 2 years ago

Within the javadoc of newInstance() it is described how to fix the deprecation (Class.class):

clazz.newInstance() can be replaced by clazz.getDeclaredConstructor().newInstance()

This is what I did for all places where this deprecation occured.

sschulz92 commented 2 years ago

@fgdrf do you mind having a look onto this beauty? :)