Modify ↓
#17186 closed defect (fixed)
Suspicious code in ImproveWayAccuracyAction.java
Reported by: | GerdP | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 19.01 |
Component: | Core | Version: | |
Keywords: | Cc: | simon04 |
Description
I did not try it but I assume the 2nd list should use the data from getLastNode()
?
If it is an error it exists since a long time.
// Looking for candidateSegment copies in ways that are referenced by candidateSegment nodes List<Way> firstNodeWays = candidateSegment.getFirstNode().referrers(Way.class).collect(Collectors.toList()); List<Way> secondNodeWays = candidateSegment.getFirstNode().referrers(Way.class).collect(Collectors.toList());
Attachments (1)
Change History (6)
comment:1 by , 6 years ago
Cc: | added; removed |
---|
comment:2 by , 6 years ago
by , 6 years ago
Attachment: | 17186.patch added |
---|
comment:3 by , 6 years ago
I am not sure if I understood what the code tries to find. The attached patch removes some lines and seems to produce the same results. The unit test also doesn't show what the action is expected to do :-(
comment:5 by , 6 years ago
Milestone: | → 19.01 |
---|
Note:
See TracTickets
for help on using tickets.
I also stumbled over this suspicious line, but wasn't sure whether this was intended or a bug.