Removed explicit type arguments.
This commit is contained in:
@@ -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 =
|
||||
{
|
||||
|
@@ -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()
|
||||
{
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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())
|
||||
{
|
||||
|
Reference in New Issue
Block a user