Ignore:
Timestamp:
2009-07-05T19:50:37+02:00 (15 years ago)
Author:
stoecker
Message:

some more cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java

    r14121 r16346  
    7171                if( !tags.containsKey("name") && !tags.containsKey("ref") )
    7272                {
     73                    boolean isRoundabout = false;
    7374                    boolean hasName = false;
    7475                    for( String key : w.keySet())
     
    7778                        if( hasName )
    7879                            break;
     80                        if(key.equals("junction"))
     81                        {
     82                            isRoundabout = w.get("junction").equals("roundabout");
     83                            break;
     84                        }
    7985                    }
    8086
    81                     if( !hasName)
     87                    if( !hasName && !isRoundabout)
    8288                        errors.add( new TestError(this, Severity.WARNING, tr("Unnamed ways"), UNNAMED_WAY, w) );
     89                    else if(isRoundabout)
     90                        errors.add( new TestError(this, Severity.WARNING, tr("Unnamed Junction"), UNNAMED_WAY, w) );
    8391                }
    8492            }
Note: See TracChangeset for help on using the changeset viewer.