Some small performance optimizations.

This commit is contained in:
Olof Larsson 2015-11-06 12:58:03 +01:00
parent 482b75be70
commit 08708eaaab
2 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,7 @@ public class TypeRank extends TypeEnum<Rel>
public Set<String> getNamesInner(Rel value)
{
// Create
Set<String> ret = super.getNamesInner(value);
Set<String> ret = new MassiveSet<String>(super.getNamesInner(value));
// Fill Exact
if (value == Rel.LEADER)

View File

@ -3,6 +3,7 @@ package com.massivecraft.factions.cmd.type;
import java.util.Set;
import com.massivecraft.factions.Rel;
import com.massivecraft.massivecore.collections.MassiveSet;
import com.massivecraft.massivecore.command.type.enumeration.TypeEnum;
public class TypeRel extends TypeEnum<Rel>
@ -28,7 +29,7 @@ public class TypeRel extends TypeEnum<Rel>
@Override
public Set<String> getNamesInner(Rel value)
{
Set<String> ret = super.getNamesInner(value);
Set<String> ret = new MassiveSet<String>(super.getNamesInner(value));
if (value == Rel.LEADER)
{