New and improved lint removal.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4438 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-10-26 23:00:20 +00:00
parent 9437211e40
commit 35082bbaca
6 changed files with 22 additions and 1 deletions
+2 -1
View File
@@ -133,7 +133,8 @@
debug="on" optimize="{$build.optimize}" deprecation="on" debug="on" optimize="{$build.optimize}" deprecation="on"
source="1.5" target="1.5"> source="1.5" target="1.5">
<classpath refid="classpath"/> <classpath refid="classpath"/>
<compilerarg value="-Xlint:unchecked"/> <compilerarg value="-Xlint"/>
<compilerarg value="-Xlint:-serial"/>
</javac> </javac>
</target> </target>
@@ -116,6 +116,7 @@ public abstract class PlaceController extends Controller
* *
* @deprecated Use {@link #createPlaceView(CrowdContext)}. * @deprecated Use {@link #createPlaceView(CrowdContext)}.
*/ */
@Deprecated
protected PlaceView createPlaceView () protected PlaceView createPlaceView ()
{ {
return null; return null;
@@ -50,6 +50,7 @@ public abstract class PlaceConfig extends SimpleStreamableObject
* *
* @deprecated Override {@link #createController} directly. * @deprecated Override {@link #createController} directly.
*/ */
@Deprecated
public Class getControllerClass () public Class getControllerClass ()
{ {
return null; return null;
@@ -89,6 +89,7 @@ public class PlaceManager
* @deprecated Use dynamically bound methods instead. See {@link * @deprecated Use dynamically bound methods instead. See {@link
* DynamicListener}. * DynamicListener}.
*/ */
@Deprecated
public static interface MessageHandler public static interface MessageHandler
{ {
/** /**
@@ -326,6 +327,7 @@ public class PlaceManager
* @deprecated Use dynamically bound methods instead. See {@link * @deprecated Use dynamically bound methods instead. See {@link
* DynamicListener}. * DynamicListener}.
*/ */
@Deprecated
public void registerMessageHandler (String name, MessageHandler handler) public void registerMessageHandler (String name, MessageHandler handler)
{ {
// create our handler map if necessary // create our handler map if necessary
@@ -441,6 +443,7 @@ public class PlaceManager
/** /**
* @deprecated Use {@link #createPlaceObject}. * @deprecated Use {@link #createPlaceObject}.
*/ */
@Deprecated
protected Class<? extends PlaceObject> getPlaceObjectClass () protected Class<? extends PlaceObject> getPlaceObjectClass ()
{ {
return PlaceObject.class; return PlaceObject.class;
@@ -237,6 +237,7 @@ public class DSet<E extends DSet.Entry>
/** /**
* @deprecated use {@link #toArray(Entry[])}. * @deprecated use {@link #toArray(Entry[])}.
*/ */
@Deprecated
public Object[] toArray (Object[] array) public Object[] toArray (Object[] array)
{ {
@SuppressWarnings("unchecked") E[] casted = (E[])array; @SuppressWarnings("unchecked") E[] casted = (E[])array;
@@ -31,11 +31,13 @@ import java.util.Random;
* *
* @deprecated moved to {@link com.samskivert.util.RandomUtil}. * @deprecated moved to {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public class RandomUtil public class RandomUtil
{ {
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static int getInt (int high) public static int getInt (int high)
{ {
return com.samskivert.util.RandomUtil.getInt(high); return com.samskivert.util.RandomUtil.getInt(high);
@@ -44,6 +46,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static int getInt (int high, int low) public static int getInt (int high, int low)
{ {
return com.samskivert.util.RandomUtil.getInt(high, low); return com.samskivert.util.RandomUtil.getInt(high, low);
@@ -52,6 +55,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static float getFloat (float high) public static float getFloat (float high)
{ {
return com.samskivert.util.RandomUtil.getFloat(high); return com.samskivert.util.RandomUtil.getFloat(high);
@@ -60,6 +64,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static int getWeightedIndex (int[] weights) public static int getWeightedIndex (int[] weights)
{ {
return com.samskivert.util.RandomUtil.getWeightedIndex(weights); return com.samskivert.util.RandomUtil.getWeightedIndex(weights);
@@ -68,6 +73,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static int getWeightedIndex (float[] weights) public static int getWeightedIndex (float[] weights)
{ {
return com.samskivert.util.RandomUtil.getWeightedIndex(weights); return com.samskivert.util.RandomUtil.getWeightedIndex(weights);
@@ -76,6 +82,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static <T> T pickRandom (T[] values) public static <T> T pickRandom (T[] values)
{ {
return com.samskivert.util.RandomUtil.pickRandom(values); return com.samskivert.util.RandomUtil.pickRandom(values);
@@ -84,6 +91,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static <T> T pickRandom (T[] values, T skip) public static <T> T pickRandom (T[] values, T skip)
{ {
return com.samskivert.util.RandomUtil.pickRandom(values, skip); return com.samskivert.util.RandomUtil.pickRandom(values, skip);
@@ -92,6 +100,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static <T> T pickRandom (Collection<T> values) public static <T> T pickRandom (Collection<T> values)
{ {
return com.samskivert.util.RandomUtil.pickRandom(values); return com.samskivert.util.RandomUtil.pickRandom(values);
@@ -100,6 +109,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static <T> T pickRandom (List<T> values) public static <T> T pickRandom (List<T> values)
{ {
return com.samskivert.util.RandomUtil.pickRandom(values); return com.samskivert.util.RandomUtil.pickRandom(values);
@@ -108,6 +118,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static <T> T pickRandom (List<T> values, T skip) public static <T> T pickRandom (List<T> values, T skip)
{ {
return com.samskivert.util.RandomUtil.pickRandom(values, skip); return com.samskivert.util.RandomUtil.pickRandom(values, skip);
@@ -116,6 +127,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static <T> T pickRandom (List<T> values, T skip, Random r) public static <T> T pickRandom (List<T> values, T skip, Random r)
{ {
return com.samskivert.util.RandomUtil.pickRandom(values, skip, 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 use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static <T> T pickRandom (Iterator<T> iter, int count) public static <T> T pickRandom (Iterator<T> iter, int count)
{ {
return com.samskivert.util.RandomUtil.pickRandom(iter, count); return com.samskivert.util.RandomUtil.pickRandom(iter, count);
@@ -132,6 +145,7 @@ public class RandomUtil
/** /**
* @deprecated use {@link com.samskivert.util.RandomUtil}. * @deprecated use {@link com.samskivert.util.RandomUtil}.
*/ */
@Deprecated
public static <T> T pickRandom (Iterator<T> iter, int count, T skip) public static <T> T pickRandom (Iterator<T> iter, int count, T skip)
{ {
return com.samskivert.util.RandomUtil.pickRandom(iter, count, skip); return com.samskivert.util.RandomUtil.pickRandom(iter, count, skip);