Class#newInstance deprecation with Java 9#431
Class#newInstance deprecation with Java 9#431FSchumacher wants to merge 11 commits intoapache:trunkfrom FSchumacher:newinstance-deprecation
Conversation
Use log string formats while we are at it
|
Hello Felix, Regards |
Codecov Report
@@ Coverage Diff @@
## trunk #431 +/- ##
===========================================
+ Coverage 58.59% 58.6% +<.01%
- Complexity 10633 10635 +2
===========================================
Files 1196 1196
Lines 76040 76039 -1
Branches 7357 7356 -1
===========================================
+ Hits 44558 44564 +6
+ Misses 28974 28969 -5
+ Partials 2508 2506 -2
Continue to review full report at Codecov.
|
|
Well, I don't know, if we can generalize it, but it is surely the first hits, only. There will be more, when I have slept a bit. |
|
According to https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html |
Thanks for the info, I read the same article before I started and then made such a mess :) I prepared a new pull request #435 and will close this one. |
Description
Change invocation of Class#newInstance to Class#getConstructor#newInstance
And do some cleanup using StringUtils.isNotBlank
Motivation and Context
Java 9 deprecates Class#newInstance, so this will get rid of the deprecation warnings
How Has This Been Tested?
ran tests
Screenshots (if appropriate):
Types of changes
Checklist: