Skip to content

Fix deprected usage if 'newInstance'#660

Open
sschulz92 wants to merge 2 commits intolocationtech:masterfrom
sschulz92:FIX_DEPRECATED_USAGE_OF_newInstance
Open

Fix deprected usage if 'newInstance'#660
sschulz92 wants to merge 2 commits intolocationtech:masterfrom
sschulz92:FIX_DEPRECATED_USAGE_OF_newInstance

Conversation

@sschulz92
Copy link
Contributor

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant