SyntaxFix
Write A Post
Hire A Developer
Questions
Use getDeclaredMethod() to get a private Method object and then use method.setAccessible() to allow to actually call it.
getDeclaredMethod()
method.setAccessible()