Fix to properties storing (bad casting removed).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7839 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
Kae..pl 2011-07-07 19:40:40 +00:00
parent 491b0f8bce
commit 1403574835

View File

@ -315,7 +315,7 @@ public class Properties implements Cloneable, Savable {
}
@Override
@SuppressWarnings("rawtypes")
@SuppressWarnings({ "rawtypes", "unchecked" })
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = ex.getCapsule(this);
oc.write(name, "name", DEFAULT_NAME);
@ -347,7 +347,7 @@ public class Properties implements Cloneable, Savable {
LOGGER.warning("Cannot save the property's value! Invalid array subtype! Property: name: " + name + "; subtype: " + subType);
}
case IDP_GROUP:
oc.write((Properties) value, "value", null);
oc.writeSavableArrayList((ArrayList<Properties>) value, "value", null);
break;
case IDP_DOUBLE:
oc.write((Double) value, "value", 0);