Modify

Opened 13 years ago

Closed 13 years ago

#3820 closed defect (fixed)

[PATCH] fix CombineWayAction warning

Reported by: hansendc Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

[javac] src/org/openstreetmap/josm/actions/CombineWayAction.java:585: warning: [unchecked] unchecked conversion
[javac] found : java.util.List
[javac] required: java.util.List<org.openstreetmap.josm.actions.CombineWayAction.NodePair>
[javac] return l == null ? Collections.EMPTY_LIST : l;
[javac]

Collections.EMPTY_LIST is an collection of Object. Use the generics version to avoid a warning.

Attachments (1)

fix-cwa-warning.patch (937 bytes) - added by hansendc 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by hansendc

Attachment: fix-cwa-warning.patch added

comment:1 Changed 13 years ago by Gubaer

Resolution: fixed
Status: newclosed

(In [2356]) applied #3820: patch by hansendc: fix CombineWayAction warning

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.