Skip to content

Commit

Permalink
Fixed keys of the reflected inner map are API keys
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jun 3, 2022
1 parent 6d1b04a commit ee6fca5
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -324,7 +324,7 @@ public boolean hasNext() {

@Override
public Key next() {
return Key.of(innerMapIterator.next());
return KeyImpl.of(innerMapIterator.next());
}

@Override
Expand Down Expand Up @@ -380,7 +380,7 @@ private final class KeySpliterator implements Spliterator<Key> {

@Override
public boolean tryAdvance(Consumer<? super Key> action) {
return spliterator.tryAdvance(entry -> action.accept(Key.of(entry)));
return spliterator.tryAdvance(entry -> action.accept(KeyImpl.of(entry)));
}

@Override
Expand Down Expand Up @@ -409,7 +409,7 @@ private final class KeyEntry implements Entry<Key, V> {

@Override
public Key getKey() {
return Key.of(entry.getKey());
return KeyImpl.of(entry.getKey());
}

@Override
Expand Down

0 comments on commit ee6fca5

Please sign in to comment.