SonarOpenCommunity / sonar-cxx

Inefficient use of keySet iterator instead of entrySet iterator JAVA-P0361
Performance
Major
6 months agoa year old
188    }
189
190    // check correction
191    for (var id : visitor.idCommentMap.keySet()) {192      LOG.debug("id: {}", id);
193
194      List<Token> comments = visitor.idCommentMap.get(id);
171    expectedIdCommentMap.put("linkageSpecification4", "linkageSpecification4");
172
173    // check completeness
174    for (var id : expectedIdCommentMap.keySet()) {175      LOG.debug("id: {}", id);
176
177      List<Token> comments = visitor.idCommentMap.get(id);