SonarOpenCommunity / sonar-cxx

Wrong argument type for Collection remove method JAVA-E1036
Bug risk
Major
5 months agoa year old
Expected an argument of type Token, got Object instead
323            }
324            break;
325          case COMMA: // (2)
326            result.remove(lastIndex);327            break;
328          default:
329            break;
Expected an argument of type Lexer, got Object instead
136      available.add(getLexer());
137    }
138    var instance = available.iterator().next();
139    available.remove(instance);140    inUse.add(instance);
141    return instance;
142  }