Modify

Opened 16 years ago

Closed 16 years ago

#3264 closed enhancement (fixed)

[PATCH] Cleanup unchecked in FileDrop and GpxWriter

Reported by: plaicy Owned by: team
Priority: trivial Milestone:
Component: Core Version:
Keywords: Cc:

Description

Hello,

cast to Collection<GpxLink> in FileDrop is not really possible in Java. Because of type erasure java will do the same as casting to Collection: It does not check if all members are instances of GpxLink. While using each GpxLink Java must do an implicit cast. I attach a test that does this cast explicit and eliminates warning issued by javac.

For FileDrop I also attach a patch for elimniation of unchecked-Warning.

Attachments (2)

filedrop-unchecked.patch (1.0 KB ) - added by plaicy 16 years ago.
gpxwriter-unchecked.patch (1.1 KB ) - added by plaicy 16 years ago.

Download all attachments as: .zip

Change History (3)

by plaicy, 16 years ago

Attachment: filedrop-unchecked.patch added

by plaicy, 16 years ago

Attachment: gpxwriter-unchecked.patch added

comment:1 by Gubaer, 16 years ago

Resolution: fixed
Status: newclosed

Applied in [1975]

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. 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.