|
|
@ -251,9 +251,9 @@ public abstract class NamedEntryCollection<T : NamedEntry>( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
val set = nameHashTable[newNameHash] |
|
|
|
val set = nameHashTable[newNameHash] |
|
|
|
when { |
|
|
|
when (set) { |
|
|
|
set == null -> nameHashTable[newNameHash] = IntSortedSets.singleton(id) |
|
|
|
null -> nameHashTable[newNameHash] = IntSortedSets.singleton(id) |
|
|
|
set is IntSortedSets.Singleton -> { |
|
|
|
is IntSortedSets.Singleton -> { |
|
|
|
val newSet = IntAVLTreeSet() |
|
|
|
val newSet = IntAVLTreeSet() |
|
|
|
newSet.add(set.firstInt()) |
|
|
|
newSet.add(set.firstInt()) |
|
|
|
newSet.add(id) |
|
|
|
newSet.add(id) |
|
|
|