Fix compilation errors with Eclipse Java compiler

This commit is contained in:
Tero Saarni 2022-07-15 16:43:56 +03:00 committed by Hynek Mlnařík
parent b7309e86d9
commit 4f199c7245
3 changed files with 5 additions and 5 deletions

View file

@ -122,7 +122,7 @@ public class AuthenticationSessionAuthNoteUpdateEvent implements ClusterEvent {
MarshallUtil.unmarshallString(input), MarshallUtil.unmarshallString(input),
MarshallUtil.unmarshallString(input), MarshallUtil.unmarshallString(input),
MarshallUtil.unmarshallString(input), MarshallUtil.unmarshallString(input),
MarshallUtil.unmarshallMap(input, HashMap::new) MarshallUtil.<String, String, Map<String, String>>unmarshallMap(input, HashMap::new)
); );
} }

View file

@ -191,7 +191,7 @@ public class SessionEntityWrapper<S extends SessionEntity> {
return res; return res;
} else { } else {
UUID sessionVersion = new UUID(input.readLong(), input.readLong()); UUID sessionVersion = new UUID(input.readLong(), input.readLong());
HashMap<String, String> map = MarshallUtil.unmarshallMap(input, HashMap::new); HashMap<String, String> map = MarshallUtil.<String, String, HashMap<String, String>>unmarshallMap(input, HashMap::new);
final SessionEntity entity = (SessionEntity) input.readObject(); final SessionEntity entity = (SessionEntity) input.readObject();
if (log.isTraceEnabled()) { if (log.isTraceEnabled()) {
log.tracef("Found entity locally: entity=%s, version=%s, metadata=%s", entity, sessionVersion, map); log.tracef("Found entity locally: entity=%s, version=%s, metadata=%s", entity, sessionVersion, map);

View file

@ -211,7 +211,7 @@ public class OIDCClientSecretConfigWrapper extends AbstractClientConfigWrapper {
public ReadOnlyRotatedSecretClientModel toRotatedClientModel() throws InvalidObjectException { public ReadOnlyRotatedSecretClientModel toRotatedClientModel() throws InvalidObjectException {
if (Objects.isNull(this.clientModel)) if (Objects.isNull(this.clientModel))
throw new InvalidObjectException(getClass().getCanonicalName() + " does not have an attribute of type " + ClientModel.class.getCanonicalName()); throw new InvalidObjectException(getClass().getCanonicalName() + " does not have an attribute of type " + ClientModel.class.getCanonicalName());
return new ReadOnlyRotatedSecretClientModel(); return new ReadOnlyRotatedSecretClientModel(clientModel);
} }
/** /**
@ -219,8 +219,8 @@ public class OIDCClientSecretConfigWrapper extends AbstractClientConfigWrapper {
*/ */
public class ReadOnlyRotatedSecretClientModel extends ClientModelLazyDelegate { public class ReadOnlyRotatedSecretClientModel extends ClientModelLazyDelegate {
private ReadOnlyRotatedSecretClientModel() { private ReadOnlyRotatedSecretClientModel(ClientModel clientModel) {
super(() -> OIDCClientSecretConfigWrapper.this.clientModel); super(() -> clientModel);
} }
@Override @Override