Ignore:
Timestamp:
2009-03-18T15:57:27+01:00 (16 years ago)
Author:
stoecker
Message:

close #2302 - patch by jttt - optimizations and encapsulation

Location:
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests
Files:
3 edited

Legend:

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

    r14015 r14121  
    256256        if(presets != null)
    257257        {
    258             Way w = new Way();
    259             w.checkTagged();
    260             w.checkDirectionTagged();
    261258            presetsValueData = new Bag<String, String>();
    262             for(String a : OsmPrimitive.uninteresting)
     259            for(String a : OsmPrimitive.getUninterestingKeys())
    263260                presetsValueData.add(a);
    264             for(String a : OsmPrimitive.directionKeys)
     261            for(String a : OsmPrimitive.getDirectionKeys())
    265262                presetsValueData.add(a);
    266263            for(String a : Main.pref.getCollection(PreferenceEditor.PREFIX + ".knownkeys",
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedNode.java

    r13497 r14121  
    6969    public void visit(Node n)
    7070    {
    71         if(!n.incomplete && !n.deleted && !n.tagged)
     71        if(!n.incomplete && !n.deleted && !n.isTagged())
    7272            emptyNodes.add(n);
    7373    }
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java

    r13497 r14121  
    8585        }
    8686
    87         if(!w.tagged && !multipolygonways.contains(w))
     87        if(!w.isTagged() && !multipolygonways.contains(w))
    8888        {
    8989            errors.add( new TestError(this, Severity.WARNING, tr("Untagged ways"), UNTAGGED_WAY, w) );
     
    114114                    if(m.member != null && m.member instanceof Way &&
    115115                    !m.member.deleted && !m.member.incomplete
    116                     && !m.member.tagged)
     116                    && !m.member.isTagged())
    117117                        multipolygonways.add((Way)m.member);
    118118                }
Note: See TracChangeset for help on using the changeset viewer.