Skip to content

Commit

Permalink
Remove unnecessary sync
Browse files Browse the repository at this point in the history
  • Loading branch information
pailakka committed Jan 3, 2025
1 parent e1ce173 commit da0fa3b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
package org.hylly.mtk2garmin;

import it.unimi.dsi.fastutil.objects.Object2IntMap;
import it.unimi.dsi.fastutil.objects.Object2IntMaps;
import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;

class StringTable {
private final Object2IntMap<String> stringTableTranslateBase = new Object2IntOpenHashMap<>();
private final Object2IntMap<String> stringTableTranslate = new Object2IntOpenHashMap<>();
private final ObjectArrayList<String> stringTable = new ObjectArrayList<>();
private final Object2IntMap<String> stringTableTranslate;

StringTable() {
stringTable.add("");
stringTableTranslate = Object2IntMaps.synchronize(stringTableTranslateBase);
}

int getStringId(String stringKey) {
Expand Down

0 comments on commit da0fa3b

Please sign in to comment.