SonarOpenCommunity / sonar-cxx

Concrete collection type used in method declaration JAVA-W1065
Anti-pattern
Major
5 months agoa year old
Method getStack returns an instance of a concrete collection type
 44    return stack.peekLast().getFile();
 45  }
 46
 47  public ArrayDeque<StateItem> getStack() { 48    return stack.clone(); 49  } 50
 51  public void pushFileState(@Nonnull Path currentFile) {
 52    Objects.requireNonNull(currentFile, "currentFile can' be null");