Ignore:
Timestamp:
2009-12-24T08:48:40+01:00 (11 years ago)
Author:
jttt
Message:

Fix some of the warnings found by FindBugs

Location:
trunk/src/org/openstreetmap/josm/corrector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java

    r2611 r2676  
    2323    private static class PrefixSuffixSwitcher {
    2424
     25        private static final String SEPARATOR = "[:_]?";
     26
    2527        private final String a;
    2628        private final String b;
    2729        private final Pattern startPattern;
    2830        private final Pattern endPattern;
    29 
    30         private final String SEPARATOR = "[:_]?";
    3131
    3232        public PrefixSuffixSwitcher(String a, String b) {
  • trunk/src/org/openstreetmap/josm/corrector/TagCorrector.java

    r2017 r2676  
    1313import java.util.Map;
    1414import java.util.Set;
     15import java.util.Map.Entry;
    1516
    1617import javax.swing.JLabel;
     
    151152
    152153            if (answer == JOptionPane.YES_OPTION) {
    153                 for (OsmPrimitive primitive : tagCorrectionsMap.keySet()) {
    154                     List<TagCorrection> tagCorrections =
    155                         tagCorrectionsMap.get(primitive);
     154                for (Entry<OsmPrimitive, List<TagCorrection>> entry : tagCorrectionsMap.entrySet()) {
     155                    List<TagCorrection> tagCorrections = entry.getValue();
     156                    OsmPrimitive primitive = entry.getKey();
    156157
    157158                    // create the clone
     
    186187                    }
    187188                }
    188                 for (OsmPrimitive primitive : roleCorrectionMap.keySet()) {
    189                     List<RoleCorrection> roleCorrections = roleCorrectionMap
    190                     .get(primitive);
     189                for (Entry<OsmPrimitive, List<RoleCorrection>> entry : roleCorrectionMap.entrySet()) {
     190                    OsmPrimitive primitive = entry.getKey();
     191                    List<RoleCorrection> roleCorrections = entry.getValue();
    191192
    192193                    for (int i = 0; i < roleCorrections.size(); i++) {
Note: See TracChangeset for help on using the changeset viewer.