Skip to content

Commit 23de7bd

Browse files
authored
Update ArrayList
1 parent 544b174 commit 23de7bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import java.io.IOException;
4949
import java.util.ArrayList;
5050
import java.util.HashMap;
51-
import java.util.List;
5251
import java.util.Map;
5352
import java.util.logging.Level;
5453
import java.util.logging.Logger;
@@ -97,7 +96,7 @@ public class Cinematic extends AbstractCinematicEvent implements AppState {
9796
private Node scene;
9897
protected TimeLine timeLine = new TimeLine();
9998
private int lastFetchedKeyFrame = -1;
100-
private List<CinematicEvent> cinematicEvents = new ArrayList<>();
99+
private ArrayList<CinematicEvent> cinematicEvents = new ArrayList<>();
101100
private Map<String, CameraNode> cameras = new HashMap<>();
102101
private CameraNode currentCam;
103102
private boolean initialized = false;
@@ -241,7 +240,7 @@ public void onPause() {
241240
public void write(JmeExporter ex) throws IOException {
242241
super.write(ex);
243242
OutputCapsule oc = ex.getCapsule(this);
244-
oc.writeSavableArrayList((ArrayList) cinematicEvents, "cinematicEvents", null);
243+
oc.writeSavableArrayList(cinematicEvents, "cinematicEvents", null);
245244
oc.writeStringSavableMap(cameras, "cameras", null);
246245
oc.write(timeLine, "timeLine", null);
247246
}
@@ -774,3 +773,4 @@ public void dispose() {
774773
}
775774
}
776775
}
776+

0 commit comments

Comments
 (0)