Fixes for new Eclipse warnings.

This commit is contained in:
MobiusDev
2017-09-27 01:59:41 +00:00
parent 3cb7b3f70e
commit bb9e1f2827
34 changed files with 68 additions and 56 deletions

View File

@@ -665,7 +665,7 @@ public final class Raina extends AbstractNpcAI
if (subId.equalsOrChildOf(cid))
{
availSubs.remove(cid);
availSubs.remove(subList.getClassDefinition());
break;
}
}

View File

@@ -48,6 +48,6 @@ public class OpNeedSummonOrPetSkillCondition implements ISkillCondition
{
final L2Summon pet = caster.getPet();
final Collection<L2Summon> summons = caster.getServitors().values();
return ((pet != null) && _npcIds.stream().anyMatch(npcId -> npcId == pet.getId())) || summons.stream().anyMatch(npcId -> _npcIds.contains(npcId));
return ((pet != null) && _npcIds.stream().anyMatch(npcId -> npcId == pet.getId())) || summons.stream().anyMatch(summon -> _npcIds.contains(summon.getId()));
}
}