KEYCLOAK-6651 Fix JDK7 compilation issue
This commit is contained in:
parent
f351db608e
commit
12a2f23101
2 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue