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:
		
							parent
							
								
									491b0f8bce
								
							
						
					
					
						commit
						1403574835
					
				| @ -315,7 +315,7 @@ public class Properties implements Cloneable, Savable { | |||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	@Override | 	@Override | ||||||
| 	@SuppressWarnings("rawtypes") | 	@SuppressWarnings({ "rawtypes", "unchecked" }) | ||||||
| 	public void write(JmeExporter ex) throws IOException { | 	public void write(JmeExporter ex) throws IOException { | ||||||
| 		OutputCapsule oc = ex.getCapsule(this); | 		OutputCapsule oc = ex.getCapsule(this); | ||||||
| 		oc.write(name, "name", DEFAULT_NAME); | 		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); | 						LOGGER.warning("Cannot save the property's value! Invalid array subtype! Property: name: " + name + "; subtype: " + subType); | ||||||
| 				} | 				} | ||||||
| 			case IDP_GROUP: | 			case IDP_GROUP: | ||||||
| 				oc.write((Properties) value, "value", null); | 				oc.writeSavableArrayList((ArrayList<Properties>) value, "value", null); | ||||||
| 				break; | 				break; | ||||||
| 			case IDP_DOUBLE: | 			case IDP_DOUBLE: | ||||||
| 				oc.write((Double) value, "value", 0); | 				oc.write((Double) value, "value", 0); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user