Generics! Woo.

This commit is contained in:
mbax committed 2012-11-28 00:59:10 -05:00
1 parent 31510b42d5
commit 9422465ced
2 files changed
+2 -3

No files matched your search

@@ -459,7 +459,7 @@ public class CommandHandler implements CommandExecutor
}
if (cont)
{
List<CheckType> l = new ArrayList();
List<CheckType> l = new ArrayList<CheckType>();
for(CheckType type : CheckType.values())
{
if(type.getUses(user.getName()) > 0)
@@ -1176,8 +1176,7 @@ public class Backend
return isMovingExempt(player) || justVelocity(player);
}
@SuppressWarnings("unchecked")
private void logEvent(@SuppressWarnings("rawtypes") final Map map, final Player player, final Object obj, long time)
private <E> void logEvent(final Map<String, E> map, final Player player, final E obj, long time)
{
map.put(player.getName(), obj);