Skip to content

Commit

Permalink
Update call deprecated in Java 9
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 2, 2023
1 parent ad1c0d0 commit 50f4687
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@ private Object getValidationClassInstance() throws ValidatorException {

} else if (this.instance == null) {
try {
this.instance = this.validationClass.newInstance();
} catch (InstantiationException | IllegalAccessException e) {
this.instance = this.validationClass.getConstructor().newInstance();
} catch (ReflectiveOperationException e) {
final String msg1 =
"Couldn't create instance of "
+ this.classname
Expand Down

0 comments on commit 50f4687

Please sign in to comment.