Ignore:
Timestamp:
2023-09-07T16:52:05+02:00 (3 years ago)
Author:
taylor.smock
Message:

Fix some potential DataIntegrityProblemException sources

This also fixes some lint issues.

merge-overlap: See #19627
reltoolbox: See #23074, #23077, #23123

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java

    r36102 r36132  
    174174                                candidateWay = tmp;
    175175                            }
    176                             commands.add(new DeleteCommand(w));
     176                            commands.add(DeleteCommand.delete(Collections.singleton(w)));
    177177                        }
    178178                    }
     
    204204    }
    205205
    206     private boolean isSuitableRelation(Relation newRelation) {
     206    private static boolean isSuitableRelation(Relation newRelation) {
    207207        return newRelation != null && "multipolygon".equals(newRelation.get("type")) && newRelation.getMembersCount() != 0;
    208208    }
Note: See TracChangeset for help on using the changeset viewer.