Ignore:
Timestamp:
2016-07-21T15:01:49+02:00 (8 years ago)
Author:
simon04
Message:

JOSM/junctionchecking: fix build

Location:
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/datastructure/OSMRelation.java

    r32596 r32692  
    4242    public String toString() {
    4343        String s = ("Relation-ID: " + this.getId() + " Relation-Type: " + this.getRelationType("type") +"\n");
    44         for (int i = 0; i < members.size(); i++) {
    45             s += ("Member: " + members.get(i).getRole() + ", ref:" + members.get(i).getId() + ", type:" + members.get(i).getType().getClass().getName());
     44        for (Member member : members) {
     45            s += member.toString();
    4646        }
    4747        return s;
     
    8686            return role;
    8787        }
     88
     89        @Override
     90        public String toString() {
     91            return "Member: " + getRole() + ", ref:" + getId() + ", type:" + getType().getName();
     92        }
    8893    }
    8994}
  • applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/reader/OSMXMLReader.java

    r32596 r32692  
    156156
    157157                case XMLStreamConstants.END_ELEMENT:
    158                     if (parser.getLocalName() == "node") {
     158                    if (parser.getLocalName().equals("node")) {
    159159                        node.setHashmap(hashmap);
    160160                        osmgraph.addNode(node);
    161161                    }
    162162
    163                     if (parser.getLocalName() == "way") {
     163                    if (parser.getLocalName().equals("way")) {
    164164                        way.setHashmap(hashmap);
    165165                        osmgraph.addWay(way);
Note: See TracChangeset for help on using the changeset viewer.