Modify

Opened 5 years ago

Closed 5 years ago

#17584 closed enhancement (fixed)

[PATCH] pt_assistant shouldn't use deprecated methods

Reported by: taylor.smock Owned by: Biswesh
Priority: normal Milestone:
Component: Plugin pt_assistant Version:
Keywords: Cc:

Description

In the patch, I've converted OsmPrimtive.getFilteredList to Utils.filteredCollection with the appropriate constructors.

I also modified some methods to be static, since that reduced the Problem spam in Eclipse, and I figure that it is always better to mark a method as static than always have to use dynamically.

Attachments (2)

17584.patch (9.0 KB ) - added by taylor.smock 5 years ago.
Replace deprecated functions and mark some methods as static
17584_remainder.patch (1.1 KB ) - added by taylor.smock 5 years ago.
Replace OsmPrimitive.getFilteredList with Utils.filteredCollection

Download all attachments as: .zip

Change History (6)

by taylor.smock, 5 years ago

Attachment: 17584.patch added

Replace deprecated functions and mark some methods as static

comment:2 by Don-vip, 5 years ago

Resolution: fixed
Status: newclosed

comment:3 by taylor.smock, 5 years ago

Resolution: fixed
Status: closedreopened

It looks like I missed one in src/main/java/org/openstreetmap/josm/plugins/pt_assistant/utils/StopUtils.java.

I've uploaded the very minimal patch as 17584_remainder.patch.

by taylor.smock, 5 years ago

Attachment: 17584_remainder.patch added

Replace OsmPrimitive.getFilteredList with Utils.filteredCollection

comment:4 by Don-vip, 5 years ago

Resolution: fixed
Status: reopenedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Biswesh.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.