Revision 19bed2df
Added by Leszek Koltunski over 8 years ago
src/main/java/org/distorted/library/DistortedNode.java | ||
---|---|---|
304 | 304 |
mObject = new DistortedBitmap( (DistortedBitmap)node.mObject, flags); |
305 | 305 |
else if( node.mObject instanceof DistortedCubes) |
306 | 306 |
mObject = new DistortedCubes( (DistortedCubes)node.mObject, flags); |
307 |
else |
|
308 |
throw new RuntimeException("unsupported type of object!"); |
|
307 | 309 |
|
308 | 310 |
if( (flags & Distorted.CLONE_CHILDREN) != 0 ) |
309 | 311 |
{ |
Also available in: Unified diff
Defensive programming.