This commit is contained in:
Janne Valkealahti
2021-12-24 13:54:41 +00:00
parent 05311ffcdc
commit d578f28662
6 changed files with 11 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ import org.springframework.shell.MethodTarget;
*/
public class BaseCalculatorTest {
@SuppressWarnings("unchecked")
protected <T> T invoke(final MethodTarget methodTarget, final Object... args) {
return (T) invokeMethod(methodTarget.getMethod(), methodTarget.getBean(), args);
}