diff --git a/jme3-bullet/src/main/java/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java b/jme3-bullet/src/main/java/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java index 4520e7ef4..1ddcb7740 100644 --- a/jme3-bullet/src/main/java/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java +++ b/jme3-bullet/src/main/java/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java @@ -166,6 +166,7 @@ public class CompoundCollisionShape extends CollisionShape { * @throws IOException from importer */ @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); diff --git a/jme3-bullet/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java b/jme3-bullet/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java index 8e4a52e70..88acc608c 100644 --- a/jme3-bullet/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java +++ b/jme3-bullet/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java @@ -1045,6 +1045,7 @@ public class PhysicsRigidBody extends PhysicsCollisionObject { * @throws IOException from importer */ @Override + @SuppressWarnings("unchecked") public void read(JmeImporter e) throws IOException { super.read(e); diff --git a/jme3-bullet/src/main/java/com/jme3/bullet/objects/PhysicsVehicle.java b/jme3-bullet/src/main/java/com/jme3/bullet/objects/PhysicsVehicle.java index 9ce983b6d..54e6236d4 100644 --- a/jme3-bullet/src/main/java/com/jme3/bullet/objects/PhysicsVehicle.java +++ b/jme3-bullet/src/main/java/com/jme3/bullet/objects/PhysicsVehicle.java @@ -643,6 +643,7 @@ public class PhysicsVehicle extends PhysicsRigidBody { * @throws IOException from importer */ @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule capsule = im.getCapsule(this); tuning = new VehicleTuning(); diff --git a/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java b/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java index 740c4e034..2e83d7a56 100644 --- a/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java +++ b/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java @@ -330,6 +330,7 @@ public class AnimComposer extends AbstractControl { } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); diff --git a/jme3-core/src/main/java/com/jme3/anim/Armature.java b/jme3-core/src/main/java/com/jme3/anim/Armature.java index 244370254..6d0fba600 100644 --- a/jme3-core/src/main/java/com/jme3/anim/Armature.java +++ b/jme3-core/src/main/java/com/jme3/anim/Armature.java @@ -261,6 +261,7 @@ public class Armature implements JmeCloneable, Savable { @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule input = im.getCapsule(this); diff --git a/jme3-core/src/main/java/com/jme3/anim/Joint.java b/jme3-core/src/main/java/com/jme3/anim/Joint.java index d51848e20..d08b5a607 100644 --- a/jme3-core/src/main/java/com/jme3/anim/Joint.java +++ b/jme3-core/src/main/java/com/jme3/anim/Joint.java @@ -333,6 +333,7 @@ public class Joint implements Savable, JmeCloneable, HasLocalTransform { } @Override + @SuppressWarnings("unchecked") public void write(JmeExporter ex) throws IOException { OutputCapsule output = ex.getCapsule(this); diff --git a/jme3-core/src/main/java/com/jme3/animation/AnimControl.java b/jme3-core/src/main/java/com/jme3/animation/AnimControl.java index 022170a2e..2abc88a4f 100644 --- a/jme3-core/src/main/java/com/jme3/animation/AnimControl.java +++ b/jme3-core/src/main/java/com/jme3/animation/AnimControl.java @@ -365,6 +365,7 @@ public final class AnimControl extends AbstractControl implements Cloneable, Jme } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule in = im.getCapsule(this); diff --git a/jme3-core/src/main/java/com/jme3/animation/TrackInfo.java b/jme3-core/src/main/java/com/jme3/animation/TrackInfo.java index 5ab134567..fbd61755a 100644 --- a/jme3-core/src/main/java/com/jme3/animation/TrackInfo.java +++ b/jme3-core/src/main/java/com/jme3/animation/TrackInfo.java @@ -62,6 +62,7 @@ public class TrackInfo implements Savable, JmeCloneable { } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule c = im.getCapsule(this); tracks = c.readSavableArrayList("tracks", null); diff --git a/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java b/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java index 9c5af0e35..eada322c6 100644 --- a/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java +++ b/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java @@ -234,6 +234,7 @@ public class Cinematic extends AbstractCinematicEvent implements AppState { * @throws IOException */ @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); diff --git a/jme3-core/src/main/java/com/jme3/cinematic/KeyFrame.java b/jme3-core/src/main/java/com/jme3/cinematic/KeyFrame.java index d8ad5b69d..d217f3e33 100644 --- a/jme3-core/src/main/java/com/jme3/cinematic/KeyFrame.java +++ b/jme3-core/src/main/java/com/jme3/cinematic/KeyFrame.java @@ -77,6 +77,7 @@ public class KeyFrame implements Savable { } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule ic = im.getCapsule(this); cinematicEvents = ic.readSavableArrayList("cinematicEvents", null); diff --git a/jme3-core/src/main/java/com/jme3/cinematic/TimeLine.java b/jme3-core/src/main/java/com/jme3/cinematic/TimeLine.java index 554d58681..40bc538b3 100644 --- a/jme3-core/src/main/java/com/jme3/cinematic/TimeLine.java +++ b/jme3-core/src/main/java/com/jme3/cinematic/TimeLine.java @@ -105,6 +105,7 @@ public class TimeLine extends HashMap implements Savable { } @Override + @SuppressWarnings("unchecked") public void write(JmeExporter ex) throws IOException { OutputCapsule oc = ex.getCapsule(this); ArrayList list = new ArrayList(); diff --git a/jme3-core/src/main/java/com/jme3/light/LightList.java b/jme3-core/src/main/java/com/jme3/light/LightList.java index 7cc7b267c..2e40a7dce 100644 --- a/jme3-core/src/main/java/com/jme3/light/LightList.java +++ b/jme3-core/src/main/java/com/jme3/light/LightList.java @@ -340,6 +340,7 @@ public final class LightList implements Iterable, Savable, Cloneable, Jme } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule ic = im.getCapsule(this); // owner = (Spatial) ic.readSavable("owner", null); diff --git a/jme3-core/src/main/java/com/jme3/material/ShaderGenerationInfo.java b/jme3-core/src/main/java/com/jme3/material/ShaderGenerationInfo.java index 3a42ee328..a9124ea2e 100644 --- a/jme3-core/src/main/java/com/jme3/material/ShaderGenerationInfo.java +++ b/jme3-core/src/main/java/com/jme3/material/ShaderGenerationInfo.java @@ -177,6 +177,7 @@ public class ShaderGenerationInfo implements Savable, Cloneable { } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule ic = im.getCapsule(this); attributes = ic.readSavableArrayList("attributes", new ArrayList()); diff --git a/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java b/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java index 7fd57de0b..9202f1602 100644 --- a/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java +++ b/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java @@ -682,6 +682,7 @@ public class TechniqueDef implements Savable, Cloneable { } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException{ InputCapsule ic = im.getCapsule(this); name = ic.readString("name", null); diff --git a/jme3-core/src/main/java/com/jme3/math/Spline.java b/jme3-core/src/main/java/com/jme3/math/Spline.java index 544aab594..33c2f2a34 100644 --- a/jme3-core/src/main/java/com/jme3/math/Spline.java +++ b/jme3-core/src/main/java/com/jme3/math/Spline.java @@ -455,6 +455,7 @@ public class Spline implements Savable { } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule in = im.getCapsule(this); diff --git a/jme3-core/src/main/java/com/jme3/scene/AssetLinkNode.java b/jme3-core/src/main/java/com/jme3/scene/AssetLinkNode.java index fd6790f68..985bab754 100644 --- a/jme3-core/src/main/java/com/jme3/scene/AssetLinkNode.java +++ b/jme3-core/src/main/java/com/jme3/scene/AssetLinkNode.java @@ -161,6 +161,7 @@ public class AssetLinkNode extends Node { } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter e) throws IOException { super.read(e); diff --git a/jme3-core/src/main/java/com/jme3/scene/Mesh.java b/jme3-core/src/main/java/com/jme3/scene/Mesh.java index 326a6acc7..2b86cbd12 100644 --- a/jme3-core/src/main/java/com/jme3/scene/Mesh.java +++ b/jme3-core/src/main/java/com/jme3/scene/Mesh.java @@ -1575,6 +1575,7 @@ public class Mesh implements Savable, Cloneable, JmeCloneable { } @Override + @SuppressWarnings("unchecked") public void write(JmeExporter ex) throws IOException { OutputCapsule out = ex.getCapsule(this); @@ -1618,6 +1619,7 @@ public class Mesh implements Savable, Cloneable, JmeCloneable { } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule in = im.getCapsule(this); meshBound = (BoundingVolume) in.readSavable("modelBound", null); diff --git a/jme3-core/src/main/java/com/jme3/scene/Node.java b/jme3-core/src/main/java/com/jme3/scene/Node.java index 290781ac4..68e087d99 100644 --- a/jme3-core/src/main/java/com/jme3/scene/Node.java +++ b/jme3-core/src/main/java/com/jme3/scene/Node.java @@ -735,12 +735,14 @@ public class Node extends Spatial { this.updateList = cloner.clone(updateList); } @Override + @SuppressWarnings("unchecked") public void write(JmeExporter e) throws IOException { super.write(e); e.getCapsule(this).writeSavableArrayList(new ArrayList(children), "children", null); } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter e) throws IOException { // XXX: Load children before loading itself!! // This prevents empty children list if controls query diff --git a/jme3-core/src/main/java/com/jme3/shader/ShaderNode.java b/jme3-core/src/main/java/com/jme3/shader/ShaderNode.java index a33ee1cf0..606ffd66f 100644 --- a/jme3-core/src/main/java/com/jme3/shader/ShaderNode.java +++ b/jme3-core/src/main/java/com/jme3/shader/ShaderNode.java @@ -194,6 +194,7 @@ public class ShaderNode implements Savable, Cloneable { * @throws IOException */ @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule ic = im.getCapsule(this); name = ic.readString("name", ""); diff --git a/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java b/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java index 6e46f0d7a..a4519e6ee 100644 --- a/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java +++ b/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java @@ -229,6 +229,7 @@ public class ShaderNodeDefinition implements Savable { * @throws IOException */ @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule ic = im.getCapsule(this); name = ic.readString("name", ""); diff --git a/jme3-jbullet/src/main/java/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java b/jme3-jbullet/src/main/java/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java index 7dffb5293..2c9d18275 100644 --- a/jme3-jbullet/src/main/java/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java +++ b/jme3-jbullet/src/main/java/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java @@ -133,6 +133,7 @@ public class CompoundCollisionShape extends CollisionShape { } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule capsule = im.getCapsule(this); diff --git a/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java b/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java index f69a36d4e..102c4f44e 100644 --- a/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java +++ b/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java @@ -684,6 +684,7 @@ public class PhysicsRigidBody extends PhysicsCollisionObject { * @throws IOException from importer */ @Override + @SuppressWarnings("unchecked") public void read(JmeImporter e) throws IOException { super.read(e); diff --git a/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsVehicle.java b/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsVehicle.java index 8b53342b7..0e0cb9abf 100644 --- a/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsVehicle.java +++ b/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsVehicle.java @@ -477,6 +477,7 @@ public class PhysicsVehicle extends PhysicsRigidBody { } @Override + @SuppressWarnings("unchecked") public void read(JmeImporter im) throws IOException { InputCapsule capsule = im.getCapsule(this); tuning = new VehicleTuning();