mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Generics! Woo.
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user