Archiviert
13
0

Continue to remove unnecessary raw types.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-12-23 18:52:00 +01:00
Ursprung 450fbd8e8d
Commit cc3441dfeb
3 geänderte Dateien mit 3 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -155,7 +155,6 @@ public class BukkitConverters {
return null; return null;
return getIgnoreNull(new EquivalentConverter<WorldType>() { return getIgnoreNull(new EquivalentConverter<WorldType>() {
@SuppressWarnings("unchecked")
@Override @Override
public Object getGeneric(Class<?> genericType, WorldType specific) { public Object getGeneric(Class<?> genericType, WorldType specific) {
try { try {
@ -169,8 +168,7 @@ public class BukkitConverters {
throw new FieldAccessException("Cannot find the WorldType.getType() method.", e); throw new FieldAccessException("Cannot find the WorldType.getType() method.", e);
} }
} }
@SuppressWarnings("unchecked")
@Override @Override
public WorldType getSpecific(Object generic) { public WorldType getSpecific(Object generic) {
try { try {

Datei anzeigen

@ -133,7 +133,6 @@ public class ChunkPosition {
*/ */
public static EquivalentConverter<ChunkPosition> getConverter() { public static EquivalentConverter<ChunkPosition> getConverter() {
return new EquivalentConverter<ChunkPosition>() { return new EquivalentConverter<ChunkPosition>() {
@SuppressWarnings("unchecked")
@Override @Override
public Object getGeneric(Class<?> genericType, ChunkPosition specific) { public Object getGeneric(Class<?> genericType, ChunkPosition specific) {
if (chunkPositionConstructor == null) { if (chunkPositionConstructor == null) {

Datei anzeigen

@ -49,7 +49,6 @@ public class WrappedWatchableObject {
* @param index - the index. * @param index - the index.
* @param value - non-null value of specific types. * @param value - non-null value of specific types.
*/ */
@SuppressWarnings("unchecked")
public WrappedWatchableObject(int index, Object value) { public WrappedWatchableObject(int index, Object value) {
if (value == null) if (value == null)
throw new IllegalArgumentException("Value cannot be NULL."); throw new IllegalArgumentException("Value cannot be NULL.");
@ -296,8 +295,8 @@ public class WrappedWatchableObject {
* @throws FieldAccessException If we're unable to use reflection. * @throws FieldAccessException If we're unable to use reflection.
*/ */
public WrappedWatchableObject deepClone() throws FieldAccessException { public WrappedWatchableObject deepClone() throws FieldAccessException {
@SuppressWarnings("unchecked") WrappedWatchableObject clone = new WrappedWatchableObject(
WrappedWatchableObject clone = new WrappedWatchableObject(DefaultInstances.DEFAULT.getDefault(MinecraftReflection.getWatchableObjectClass())); DefaultInstances.DEFAULT.getDefault(MinecraftReflection.getWatchableObjectClass()));
clone.setDirtyState(getDirtyState()); clone.setDirtyState(getDirtyState());
clone.setIndex(getIndex()); clone.setIndex(getIndex());