Ignore:
Timestamp:
2016-07-27T20:48:53+02:00 (8 years ago)
Author:
donvip
Message:

fix error-prone warnings

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

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java

    r32727 r32728  
    316316                    for (int i = 0; i < r.getMembersCount(); i++) {
    317317                        RelationMember member = r.getMember(i);
    318                         if (member.getMember() == addrNode) {
     318                        if (addrNode.equals(member.getMember())) {
    319319                            rnew.removeMember(i);
    320320                            rnew.addMember(i, new RelationMember(member.getRole(), w));
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/MergeAddrPointsAction.java

    r32543 r32728  
    122122                        for (int i = 0; i < r.getMembersCount(); i++) {
    123123                            RelationMember member = r.getMember(i);
    124                             if (member.getMember() == mergeNode) {
     124                            if (mergeNode.equals(member.getMember())) {
    125125                                rnew.removeMember(i);
    126126                                rnew.addMember(i, new RelationMember(member.getRole(), w));
Note: See TracChangeset for help on using the changeset viewer.