Ignore:
Timestamp:
2015-06-04T01:52:36+02:00 (5 years ago)
Author:
Don-vip
Message:

minor code style issues

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java

    r8449 r8465  
    107107            // Build a new list of VM parameters to modify it below if needed (default implementation returns an UnmodifiableList instance)
    108108            List<String> vmArguments = new ArrayList<>(ManagementFactory.getRuntimeMXBean().getInputArguments());
    109             for (ListIterator<String> it = vmArguments.listIterator(); it.hasNext(); ) {
     109            for (ListIterator<String> it = vmArguments.listIterator(); it.hasNext();) {
    110110                String value = it.next();
    111111                if (value.contains("=")) {
  • trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java

    r8443 r8465  
    228228        for (int i=1; i<selectedNodes.size(); i++) {
    229229            List<OsmPrimitive> ref = selectedNodes.get(i).getReferrers();
    230             for (Iterator<Way> it = result.iterator(); it.hasNext(); ) {
     230            for (Iterator<Way> it = result.iterator(); it.hasNext();) {
    231231                if (!ref.contains(it.next())) {
    232232                    it.remove();
     
    236236
    237237        // Remove broken ways
    238         for (Iterator<Way> it = result.iterator(); it.hasNext(); ) {
     238        for (Iterator<Way> it = result.iterator(); it.hasNext();) {
    239239            if (it.next().getNodesCount() <= 2) {
    240240                it.remove();
     
    246246        else {
    247247            // Return only selected ways
    248             for (Iterator<Way> it = result.iterator(); it.hasNext(); ) {
     248            for (Iterator<Way> it = result.iterator(); it.hasNext();) {
    249249                if (!selectedWays.contains(it.next())) {
    250250                    it.remove();
  • trunk/src/org/openstreetmap/josm/actions/UnJoinNodeWayAction.java

    r8378 r8465  
    157157        for (int i=1; i<selectedNodes.size(); i++) {
    158158            List<OsmPrimitive> ref = selectedNodes.get(i).getReferrers();
    159             for (Iterator<Way> it = result.iterator(); it.hasNext(); ) {
     159            for (Iterator<Way> it = result.iterator(); it.hasNext();) {
    160160                if (!ref.contains(it.next())) {
    161161                    it.remove();
     
    165165
    166166        // Remove broken ways
    167         for (Iterator<Way> it = result.iterator(); it.hasNext(); ) {
     167        for (Iterator<Way> it = result.iterator(); it.hasNext();) {
    168168            if (it.next().getNodesCount() <= 2) {
    169169                it.remove();
     
    175175        else {
    176176            // Return only selected ways
    177             for (Iterator<Way> it = result.iterator(); it.hasNext(); ) {
     177            for (Iterator<Way> it = result.iterator(); it.hasNext();) {
    178178                if (!selectedWays.contains(it.next())) {
    179179                    it.remove();
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r8444 r8465  
    15451545                if (selectedWays.size()==1) {
    15461546                    Way w = selectedWays.iterator().next();
    1547                     Collection <EastNorth> pointsToProject = new ArrayList<>();
     1547                    Collection<EastNorth> pointsToProject = new ArrayList<>();
    15481548                    if (w.getNodesCount()<1000) {
    15491549                        for (Node n: w.getNodes()) {
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r8449 r8465  
    340340            Main.map.mapView.setNewCursor(ctrl ? cursorTranslate : alt ? cursorCreateNew : shift ? cursorCreateNodes : cursor, this);
    341341        }
    342     };
     342    }
    343343
    344344    @Override
Note: See TracChangeset for help on using the changeset viewer.