Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Sep 27, 2024
1 parent 4362915 commit f042238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/esaulpaugh/headlong/abi/UnitType.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ static void ensureInitialized() {
}

private static synchronized void initMaps(Object h) {
Objects.requireNonNull(h);

final int empty = 0;
final int full = 108;
final int size = BASE_TYPE_MAP.size();
Expand All @@ -246,6 +244,8 @@ private static synchronized void initMaps(Object h) {
throw ise;
}

Objects.requireNonNull(h);

final Map<String, ABIType<?>> map = BASE_TYPE_MAP;

// optimized insertion order
Expand Down

0 comments on commit f042238

Please sign in to comment.