Update the block to run only a public method.
This commit is contained in:
@@ -24,7 +24,6 @@ public class BlockDecorator<T extends Test> extends AbstractDecorator<T> {
|
||||
|
||||
public boolean runMethod() {
|
||||
try {
|
||||
method.setAccessible(true);
|
||||
method.invoke(getCommand().getObject());
|
||||
return true;
|
||||
} catch (InvocationTargetException e) {
|
||||
|
||||
Reference in New Issue
Block a user