You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by nd...@apache.org on 2006/06/24 02:03:52 UTC
svn commit: r416842 -
/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java
Author: ndbeyer
Date: Fri Jun 23 17:03:52 2006
New Revision: 416842
URL: http://svn.apache.org/viewvc?rev=416842&view=rev
Log:
Add deprecation tags and generfication cleanup.
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java
Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java?rev=416842&r1=416841&r2=416842&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java Fri Jun 23 17:03:52 2006
@@ -35,32 +35,74 @@
public class Frame extends Window implements MenuContainer {
private static final long serialVersionUID = 2673458971256075116L;
+ /**
+ * @deprecated Please use {@link Cursor#DEFAULT_CURSOR}.
+ */
public static final int DEFAULT_CURSOR = 0;
+ /**
+ * @deprecated Please use {@link Cursor#CROSSHAIR_CURSOR}.
+ */
public static final int CROSSHAIR_CURSOR = 1;
+ /**
+ * @deprecated Please use {@link Cursor#TEXT_CURSOR}.
+ */
public static final int TEXT_CURSOR = 2;
+ /**
+ * @deprecated Please use {@link Cursor#WAIT_CURSOR}.
+ */
public static final int WAIT_CURSOR = 3;
+ /**
+ * @deprecated Please use {@link Cursor#SW_RESIZE_CURSOR}.
+ */
public static final int SW_RESIZE_CURSOR = 4;
+ /**
+ * @deprecated Please use {@link Cursor#SE_RESIZE_CURSOR}.
+ */
public static final int SE_RESIZE_CURSOR = 5;
+ /**
+ * @deprecated Please use {@link Cursor#NW_RESIZE_CURSOR}.
+ */
public static final int NW_RESIZE_CURSOR = 6;
+ /**
+ * @deprecated Please use {@link Cursor#NE_RESIZE_CURSOR}.
+ */
public static final int NE_RESIZE_CURSOR = 7;
+ /**
+ * @deprecated Please use {@link Cursor#N_RESIZE_CURSOR}.
+ */
public static final int N_RESIZE_CURSOR = 8;
+ /**
+ * @deprecated Please use {@link Cursor#S_RESIZE_CURSOR}.
+ */
public static final int S_RESIZE_CURSOR = 9;
+ /**
+ * @deprecated Please use {@link Cursor#W_RESIZE_CURSOR}.
+ */
public static final int W_RESIZE_CURSOR = 10;
+ /**
+ * @deprecated Please use {@link Cursor#E_RESIZE_CURSOR}.
+ */
public static final int E_RESIZE_CURSOR = 11;
+ /**
+ * @deprecated Please use {@link Cursor#HAND_CURSOR}.
+ */
public static final int HAND_CURSOR = 12;
+ /**
+ * @deprecated Please use {@link Cursor#MOVE_CURSOR}.
+ */
public static final int MOVE_CURSOR = 13;
public static final int NORMAL = 0;
@@ -530,24 +572,24 @@
static final class AllFrames {
- private final ArrayList frames = new ArrayList();
+ private final ArrayList<WeakReference<Frame>> frames = new ArrayList<WeakReference<Frame>>();
void add(Frame f) {
- frames.add(new WeakReference(f));
+ frames.add(new WeakReference<Frame>(f));
}
Frame[] getFrames() {
- ArrayList aliveFrames = new ArrayList();
+ ArrayList<Frame> aliveFrames = new ArrayList<Frame>();
- for(Iterator it = frames.iterator(); it.hasNext(); ) {
- WeakReference ref = (WeakReference)it.next();
- Frame f = (Frame)ref.get();
+ for(Iterator<WeakReference<Frame>> it = frames.iterator(); it.hasNext(); ) {
+ WeakReference<Frame> ref = it.next();
+ Frame f = ref.get();
if (f != null) {
aliveFrames.add(f);
}
}
- return (Frame [])aliveFrames.toArray(new Frame[0]);
+ return aliveFrames.toArray(new Frame[aliveFrames.size()]);
}
}
}