P findProtocol(Protocol[] stack, Class
clazz) { for (Protocol protocol : stack) { if (clazz.isAssignableFrom(protocol.getClass())) diff --git a/tests/junit-functional/org/jgroups/tests/harness/BaseStateMachineTest.java b/tests/junit-functional/org/jgroups/tests/harness/BaseStateMachineTest.java index 2095ed2b..4b4d5f5e 100644 --- a/tests/junit-functional/org/jgroups/tests/harness/BaseStateMachineTest.java +++ b/tests/junit-functional/org/jgroups/tests/harness/BaseStateMachineTest.java @@ -92,8 +92,8 @@ protected final T stateMachine(int index) { * @param r: {@link RAFT} instance to retrieve the {@link StateMachine}. * @return The {@link StateMachine} cast to type T. */ + @SuppressWarnings("unchecked") protected final T stateMachine(RAFT r) { - // noinspection unchecked return (T) r.stateMachine(); }