Ignore:
Timestamp:
2013-09-25T02:56:42+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/Findbugs - Performance - Inefficient use of keySet iterator instead of entrySet iterator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r6084 r6258  
    2222import java.util.List;
    2323import java.util.Map;
     24import java.util.Map.Entry;
    2425
    2526import javax.swing.AbstractAction;
     
    312313    public void setDefaultChangesetTags(Map<String, String> tags) {
    313314        pnlTagSettings.setDefaultTags(tags);
    314          for (String key: tags.keySet()) {
    315             if (key.equals("comment")) {
    316                 changesetCommentModel.setComment(tags.get(key));
     315         for (Entry<String, String> entry: tags.entrySet()) {
     316            if ("comment".equals(entry.getKey())) {
     317                changesetCommentModel.setComment(entry.getValue());
    317318            }
    318319        }
Note: See TracChangeset for help on using the changeset viewer.