trackeditor: fix a warning

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8301 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 7c79863c6417aed14f115c941f7e8eb8d746b51f
Former-commit-id: b4bc27bca894deff696edc8af2c4e446b9d3f29a
This commit is contained in:
iobyte 2022-07-06 13:59:40 +00:00
parent 7818a47297
commit dcbc94658d

View file

@ -906,16 +906,16 @@ public class CircuitView extends JComponent implements KeyListener, MouseListene
int count = 0;
try
{
Iterator i = editorFrame.getTrackData().getSegments().iterator();
Iterator<Segment> i = editorFrame.getTrackData().getSegments().iterator();
while (i.hasNext())
{
Segment obj = (Segment) i.next();
Segment obj = i.next();
if (Class.forName("utils.circuit.Segment").isAssignableFrom(obj.getClass())
&& obj.contains(mousePoint.getX(), mousePoint.getY()))
{
// object found !
out = ((Segment) obj);
out = obj;
currentCount = count;
}
count++;