removed unneeded suppression of warnings.

This commit is contained in:
Inderjeet Singh 2011-01-19 07:34:44 +00:00
parent b3685cff1e
commit edc71130c4
2 changed files with 1 additions and 3 deletions

View File

@ -123,7 +123,6 @@ public class TypeToken<T> {
* with wildcards. * with wildcards.
*/ */
@Deprecated @Deprecated
@SuppressWarnings("deprecation")
public boolean isAssignableFrom(Class<?> cls) { public boolean isAssignableFrom(Class<?> cls) {
return isAssignableFrom((Type) cls); return isAssignableFrom((Type) cls);
} }
@ -165,7 +164,6 @@ public class TypeToken<T> {
* with wildcards. * with wildcards.
*/ */
@Deprecated @Deprecated
@SuppressWarnings("deprecation")
public boolean isAssignableFrom(TypeToken<?> token) { public boolean isAssignableFrom(TypeToken<?> token) {
return isAssignableFrom(token.getType()); return isAssignableFrom(token.getType());
} }

View File

@ -26,7 +26,7 @@ import junit.framework.TestCase;
/** /**
* @author Jesse Wilson * @author Jesse Wilson
*/ */
@SuppressWarnings({"UnusedDeclaration", "deprecation"}) @SuppressWarnings({"deprecation"})
public final class TypeTokenTest extends TestCase { public final class TypeTokenTest extends TestCase {
List<Integer> listOfInteger = null; List<Integer> listOfInteger = null;