Modify

Opened 4 years ago

Closed 4 years ago

#3820 closed defect (fixed)

[PATCH] fix CombineWayAction warning

Reported by: hansendc Owned by: team
Priority: normal 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 4 years ago.

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by hansendc

comment:1 Changed 4 years ago by Gubaer

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.