Qube: Community 9.9
The Java rule S1149 wants me to use Deque instead of Stack, because Stack is synchronized. Fine!
If the code invokes a method from Stack, that doesn’t exist in Deque and not even in ArrayDeque, the rule should not hit.
public void foo(Stack<String> stack) { // FP
stack.get(1); // The get(int) method does not exist in Deque, nor in ArrayDeque.
}