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)
Change History (3)
by , 16 years ago
Attachment: | filedrop-unchecked.patch added |
---|
by , 16 years ago
Attachment: | gpxwriter-unchecked.patch added |
---|
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Applied in [1975]