Changeset 24575 in osm for applications


Ignore:
Timestamp:
2010-12-04T14:36:03+01:00 (14 years ago)
Author:
upliner
Message:

add missing breaks in switch statements

Location:
applications/editors/josm/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery/ImageryPreferenceEditor.java

    r24572 r24575  
    439439                return (info.imageryType == ImageryType.WMS) ? (info.pixelPerDegree == 0.0 ? "" : info.pixelPerDegree)
    440440                                                             : (info.maxZoom == 0 ? "" : info.maxZoom);
    441             }
    442             return null;
     441            default:
     442                throw new ArrayIndexOutOfBoundsException();
     443            }
    443444        }
    444445
     
    449450            case 0:
    450451                info.name = (String) o;
     452                break;
    451453            case 1:
    452454                info.setURL((String)o);
     455                break;
    453456            case 2:
    454457                info.pixelPerDegree = 0;
     
    461464                } catch (NumberFormatException e) {
    462465                }
     466                break;
     467            default:
     468                throw new ArrayIndexOutOfBoundsException();
    463469            }
    464470        }
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPreferenceEditor.java

    r23358 r24575  
    306306            case 0:
    307307                info.name = (String) o;
     308                break;
    308309            case 1:
    309310                info.setURL((String)o);
     311                break;
    310312            }
    311313        }
Note: See TracChangeset for help on using the changeset viewer.