Skip to content

Commit

Permalink
More fixing of builds: toJson should be made accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Oct 4, 2017
1 parent 16c00e1 commit d41da25
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ private JsonElement convertObject(Object toConvert, int maxDepth) throws Excepti

private Method getMethod(Object toConvert, String methodName) {
try {
return toConvert.getClass().getMethod(methodName);
Method method = toConvert.getClass().getMethod(methodName);
method.setAccessible(true);
return method;
} catch (NoSuchMethodException | SecurityException e) {
// fall through
}
Expand Down

0 comments on commit d41da25

Please sign in to comment.