removed unneeded suppression of warnings.
This commit is contained in:
parent
b3685cff1e
commit
edc71130c4
@ -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());
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user