From 35082bbacab6ac4ddce8ed326dc8c7fdbe9989e4 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 26 Oct 2006 23:00:20 +0000 Subject: [PATCH] New and improved lint removal. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4438 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- build.xml | 3 ++- .../threerings/crowd/client/PlaceController.java | 1 + .../com/threerings/crowd/data/PlaceConfig.java | 1 + .../com/threerings/crowd/server/PlaceManager.java | 3 +++ src/java/com/threerings/presents/dobj/DSet.java | 1 + src/java/com/threerings/util/RandomUtil.java | 14 ++++++++++++++ 6 files changed, 22 insertions(+), 1 deletion(-) diff --git a/build.xml b/build.xml index 489cd1264..749c0f3a9 100644 --- a/build.xml +++ b/build.xml @@ -133,7 +133,8 @@ debug="on" optimize="{$build.optimize}" deprecation="on" source="1.5" target="1.5"> - + + diff --git a/src/java/com/threerings/crowd/client/PlaceController.java b/src/java/com/threerings/crowd/client/PlaceController.java index 21c4a737c..8391a1938 100644 --- a/src/java/com/threerings/crowd/client/PlaceController.java +++ b/src/java/com/threerings/crowd/client/PlaceController.java @@ -116,6 +116,7 @@ public abstract class PlaceController extends Controller * * @deprecated Use {@link #createPlaceView(CrowdContext)}. */ + @Deprecated protected PlaceView createPlaceView () { return null; diff --git a/src/java/com/threerings/crowd/data/PlaceConfig.java b/src/java/com/threerings/crowd/data/PlaceConfig.java index 6bc97b6d1..705d204bc 100644 --- a/src/java/com/threerings/crowd/data/PlaceConfig.java +++ b/src/java/com/threerings/crowd/data/PlaceConfig.java @@ -50,6 +50,7 @@ public abstract class PlaceConfig extends SimpleStreamableObject * * @deprecated Override {@link #createController} directly. */ + @Deprecated public Class getControllerClass () { return null; diff --git a/src/java/com/threerings/crowd/server/PlaceManager.java b/src/java/com/threerings/crowd/server/PlaceManager.java index 108bdc870..490a56031 100644 --- a/src/java/com/threerings/crowd/server/PlaceManager.java +++ b/src/java/com/threerings/crowd/server/PlaceManager.java @@ -89,6 +89,7 @@ public class PlaceManager * @deprecated Use dynamically bound methods instead. See {@link * DynamicListener}. */ + @Deprecated public static interface MessageHandler { /** @@ -326,6 +327,7 @@ public class PlaceManager * @deprecated Use dynamically bound methods instead. See {@link * DynamicListener}. */ + @Deprecated public void registerMessageHandler (String name, MessageHandler handler) { // create our handler map if necessary @@ -441,6 +443,7 @@ public class PlaceManager /** * @deprecated Use {@link #createPlaceObject}. */ + @Deprecated protected Class getPlaceObjectClass () { return PlaceObject.class; diff --git a/src/java/com/threerings/presents/dobj/DSet.java b/src/java/com/threerings/presents/dobj/DSet.java index 6cc4a6af2..d518bf43f 100644 --- a/src/java/com/threerings/presents/dobj/DSet.java +++ b/src/java/com/threerings/presents/dobj/DSet.java @@ -237,6 +237,7 @@ public class DSet /** * @deprecated use {@link #toArray(Entry[])}. */ + @Deprecated public Object[] toArray (Object[] array) { @SuppressWarnings("unchecked") E[] casted = (E[])array; diff --git a/src/java/com/threerings/util/RandomUtil.java b/src/java/com/threerings/util/RandomUtil.java index 898027bb7..46cc5eb9d 100644 --- a/src/java/com/threerings/util/RandomUtil.java +++ b/src/java/com/threerings/util/RandomUtil.java @@ -31,11 +31,13 @@ import java.util.Random; * * @deprecated moved to {@link com.samskivert.util.RandomUtil}. */ +@Deprecated public class RandomUtil { /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static int getInt (int high) { return com.samskivert.util.RandomUtil.getInt(high); @@ -44,6 +46,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static int getInt (int high, int low) { return com.samskivert.util.RandomUtil.getInt(high, low); @@ -52,6 +55,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static float getFloat (float high) { return com.samskivert.util.RandomUtil.getFloat(high); @@ -60,6 +64,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static int getWeightedIndex (int[] weights) { return com.samskivert.util.RandomUtil.getWeightedIndex(weights); @@ -68,6 +73,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static int getWeightedIndex (float[] weights) { return com.samskivert.util.RandomUtil.getWeightedIndex(weights); @@ -76,6 +82,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static T pickRandom (T[] values) { return com.samskivert.util.RandomUtil.pickRandom(values); @@ -84,6 +91,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static T pickRandom (T[] values, T skip) { return com.samskivert.util.RandomUtil.pickRandom(values, skip); @@ -92,6 +100,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static T pickRandom (Collection values) { return com.samskivert.util.RandomUtil.pickRandom(values); @@ -100,6 +109,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static T pickRandom (List values) { return com.samskivert.util.RandomUtil.pickRandom(values); @@ -108,6 +118,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static T pickRandom (List values, T skip) { return com.samskivert.util.RandomUtil.pickRandom(values, skip); @@ -116,6 +127,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static T pickRandom (List values, T skip, Random r) { return com.samskivert.util.RandomUtil.pickRandom(values, skip, r); @@ -124,6 +136,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static T pickRandom (Iterator iter, int count) { return com.samskivert.util.RandomUtil.pickRandom(iter, count); @@ -132,6 +145,7 @@ public class RandomUtil /** * @deprecated use {@link com.samskivert.util.RandomUtil}. */ + @Deprecated public static T pickRandom (Iterator iter, int count, T skip) { return com.samskivert.util.RandomUtil.pickRandom(iter, count, skip);