Skip to content

Commit

Permalink
Updating to JDK 11
Browse files Browse the repository at this point in the history
x-stream#211

Automatic updates
https://jenkins.updater.j2eeguys.com/

Signed-off-by: Honor Systems Updater Jenkins <[email protected]>
  • Loading branch information
hsujenkins committed Oct 26, 2020
1 parent 068439b commit f1f507f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Object newInstance(final Class<?> type) {
try {
for (final Constructor<?> constructor : type.getDeclaredConstructors()) {
if (constructor.getParameterTypes().length == 0) {
if (!constructor.isAccessible()) {
if (!constructor.canAccess(null)) {
constructor.setAccessible(true);
}
return constructor.newInstance(new Object[0]);
Expand Down

0 comments on commit f1f507f

Please sign in to comment.