Removed explicit type arguments.

This commit is contained in:
MobiusDev
2018-09-09 15:59:32 +00:00
parent 744204e1cd
commit b50b43a1f9
56 changed files with 133 additions and 389 deletions

View File

@@ -39,7 +39,7 @@ public final class GeneralDilios extends AbstractNpcAI
private static final int GUARD_ID = 32619;
private L2Npc _general = null;
private final Set<L2Spawn> _guards = Collections.newSetFromMap(new ConcurrentHashMap<L2Spawn, Boolean>());
private final Set<L2Spawn> _guards = Collections.newSetFromMap(new ConcurrentHashMap<>());
private static final NpcStringId[] DILIOS_TEXT =
{

View File

@@ -100,7 +100,7 @@ public final class Keltas extends AbstractNpcAI
};
// Misc
private L2MonsterInstance _spawnedKeltas = null;
private final Set<L2Spawn> _spawnedMonsters = Collections.newSetFromMap(new ConcurrentHashMap<L2Spawn, Boolean>());
private final Set<L2Spawn> _spawnedMonsters = Collections.newSetFromMap(new ConcurrentHashMap<>());
public Keltas()
{

View File

@@ -809,7 +809,7 @@ public final class RainbowSpringsChateau extends ClanHallSiegeEngine
}
else
{
_usedTextPassages.put(message, new ArrayList<L2Clan>());
_usedTextPassages.put(message, new ArrayList<>());
final int objId = npc.getObjectId();
final NpcSay say = new NpcSay(objId, ChatType.NPC_SHOUT, npc.getId(), message);
npc.broadcastPacket(say);

View File

@@ -1359,7 +1359,7 @@ public class AdminEditChar implements IAdminCommandHandler
ip = client.getConnectionAddress().getHostAddress();
if (ipMap.get(ip) == null)
{
ipMap.put(ip, new ArrayList<L2PcInstance>());
ipMap.put(ip, new ArrayList<>());
}
ipMap.get(ip).add(player);
@@ -1413,7 +1413,7 @@ public class AdminEditChar implements IAdminCommandHandler
final IpPack pack = new IpPack(client.getConnectionAddress().getHostAddress(), client.getTrace());
if (ipMap.get(pack) == null)
{
ipMap.put(pack, new ArrayList<L2PcInstance>());
ipMap.put(pack, new ArrayList<>());
}
ipMap.get(pack).add(player);

View File

@@ -262,7 +262,7 @@ public final class FinalEmperialTomb extends AbstractInstance implements IGameXm
}
final int flag = Integer.parseInt(attrs.getNamedItem("flag").getNodeValue());
_spawnList.putIfAbsent(flag, new ArrayList<FETSpawn>());
_spawnList.putIfAbsent(flag, new ArrayList<>());
for (Node cd = d.getFirstChild(); cd != null; cd = cd.getNextSibling())
{