Project

General

Profile

« Previous | Next » 

Revision 19bed2df

Added by Leszek Koltunski almost 8 years ago

Defensive programming.

View differences:

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