Skip to content

Replace use of deprecated newInstance calls.#1191

Closed
jmark99 wants to merge 2 commits intoapache:masterfrom
jmark99:instance
Closed

Replace use of deprecated newInstance calls.#1191
jmark99 wants to merge 2 commits intoapache:masterfrom
jmark99:instance

Conversation

@jmark99
Copy link
Contributor

@jmark99 jmark99 commented Jun 10, 2019

Calls to newInstance() are deprecated in JDK 9+. Replace with calls to
getDeclaredConstructor().newInstance()

Calls to newInstance() are deprecated in JDK 9+. Replace with calls to
getDeclaredConstructor().newInstance()
Copy link
Member

@ctubbsii ctubbsii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, but I think things can be cleaned up by using ReflectiveOperationException

Updated to use ReflectiveOperationException where applicable.
@jmark99
Copy link
Contributor Author

jmark99 commented Jun 11, 2019

Merge changes. Closes #1191

@jmark99 jmark99 closed this Jun 11, 2019
ctubbsii added a commit to ctubbsii/accumulo that referenced this pull request Jun 11, 2019
* Fixes apache#1192 (use Charset instead of String, where appropriate)
* Fixes apache#1193 (replace Guava immutables with Java 11 built-ins)
* Rebased onto apache#1191 (avoid deprecated Class.newInstance; conflicts resolved)
* Configure Maven to build with Java 11
* Remove animal-sniffer (unnecessary with new javac release flag)
* Add exceptions to spotbugs to avoid false positive bug
  (spotbugs/spotbugs#756)
ctubbsii added a commit to ctubbsii/accumulo that referenced this pull request Jun 11, 2019
* Fixes apache#1192 (use Charset instead of String, where appropriate)
* Fixes apache#1193 (replace Guava immutables with Java 11 built-ins)
* Rebased onto apache#1191 (avoid deprecated Class.newInstance; conflicts resolved)
* Configure Maven to build with Java 11
* Remove animal-sniffer (unnecessary with new javac release flag)
* Add exceptions to spotbugs to avoid false positive bug
  (spotbugs/spotbugs#756)
@jmark99 jmark99 deleted the instance branch June 13, 2019 17:03
@ctubbsii ctubbsii added this to the 2.1.0 milestone Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants

Comments