KEYCLOAK-6651 Fix JDK7 compilation issue

This commit is contained in:
Hynek Mlnarik 2018-02-19 13:08:12 +01:00 committed by Hynek Mlnařík
parent f351db608e
commit 12a2f23101
2 changed files with 6 additions and 1 deletions

View file

@ -153,6 +153,11 @@ public class CompositeKeyLocator implements KeyLocator, Iterable<Key> {
} }
return this; return this;
} }
@Override
public void remove() {
throw new UnsupportedOperationException("remove"); // Same as default implementation in JDK 8 - to support JDK 7 compilation
}
}.findNext(); }.findNext();
} }
} }

View file

@ -64,6 +64,6 @@ public class HardcodedKeyLocator implements KeyLocator, Iterable<Key> {
@Override @Override
public Iterator<Key> iterator() { public Iterator<Key> iterator() {
return Collections.unmodifiableCollection(keys).iterator(); return (Iterator<Key>) Collections.unmodifiableCollection(keys).iterator();
} }
} }