Opened 15 years ago
Closed 15 years ago
#3817 closed defect (fixed)
[PATCH] fix DataSet cast warning
Reported by: | hansendc | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
[javac] src/org/openstreetmap/josm/data/osm/DataSet.java:634: warning: [unchecked] unchecked cast
[javac] found : java.util.Collection<capture#506 of ? extends org.openstreetmap.josm.data.osm.OsmPrimitive>
[javac] required: java.util.Set<? extends org.openstreetmap.josm.data.osm.OsmPrimitive>
[javac] referred = (Set<? extends OsmPrimitive>)primitives;
[javac]
The following patch uses two copies of getReferringRelations(). One takes a raw collection and the other an actual set. This avoids the casting, but still preserves the optimization that was there.
Attachments (1)
Change History (2)
by , 15 years ago
Attachment: | fix-DataSet-cast-warning.patch added |
---|
comment:1 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [2352]) applied #3817: applied patch by hansendc: fix DataSet cast warning