Esempio n. 1
0
 /** Creates copy of <code>WindowInfo</code> object. */
 @SuppressWarnings({"EmptyCatchBlock"})
 public WindowInfoImpl copy() {
   WindowInfoImpl info = null;
   try {
     info = (WindowInfoImpl) clone();
     if (myFloatingBounds != null) {
       info.myFloatingBounds = (Rectangle) myFloatingBounds.clone();
     }
   } catch (CloneNotSupportedException ignored) {
   }
   return info;
 }
 /** Creates copy of <code>WindowInfo</code> object. */
 @NotNull
 public WindowInfoImpl copy() {
   try {
     WindowInfoImpl info = (WindowInfoImpl) clone();
     if (myFloatingBounds != null) {
       info.myFloatingBounds = (Rectangle) myFloatingBounds.clone();
     }
     return info;
   } catch (CloneNotSupportedException e) {
     throw new RuntimeException(e);
   }
 }