From a22a6db408d8c8f6b7e4d857773350ba8afad559 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Fri, 16 Oct 2015 17:59:20 +0200 Subject: [PATCH] [Fix] fixed compiler error --- ch.eitchnet.utils | 2 +- .../src/main/java/li/strolch/agent/api/StrolchComponent.java | 2 +- .../java/li/strolch/rest/DefaultStrolchSessionHandler.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ch.eitchnet.utils b/ch.eitchnet.utils index 46c3db291..d0691e4d3 160000 --- a/ch.eitchnet.utils +++ b/ch.eitchnet.utils @@ -1 +1 @@ -Subproject commit 46c3db2913efaf4dd287c4feeb2548d85a6ac1d4 +Subproject commit d0691e4d35220d94d29d642694749524b66fc66c diff --git a/li.strolch.agent/src/main/java/li/strolch/agent/api/StrolchComponent.java b/li.strolch.agent/src/main/java/li/strolch/agent/api/StrolchComponent.java index 1ed0c109e..1733d8717 100644 --- a/li.strolch.agent/src/main/java/li/strolch/agent/api/StrolchComponent.java +++ b/li.strolch.agent/src/main/java/li/strolch/agent/api/StrolchComponent.java @@ -219,7 +219,7 @@ public class StrolchComponent { * * @throws PrivilegeException */ - protected T runPrivileged(RunRunnable.Runnable action) throws PrivilegeException { + protected T runPrivilegedRunnable(RunRunnable.Runnable action) throws PrivilegeException { return this.container.getPrivilegeHandler() .runAsSystem(StrolchConstants.PRIVILEGED_SYSTEM_USER, new RunRunnable<>(action)).getResult(); } diff --git a/li.strolch.rest/src/main/java/li/strolch/rest/DefaultStrolchSessionHandler.java b/li.strolch.rest/src/main/java/li/strolch/rest/DefaultStrolchSessionHandler.java index fa924da5b..2c807f1a5 100644 --- a/li.strolch.rest/src/main/java/li/strolch/rest/DefaultStrolchSessionHandler.java +++ b/li.strolch.rest/src/main/java/li/strolch/rest/DefaultStrolchSessionHandler.java @@ -83,7 +83,7 @@ public class DefaultStrolchSessionHandler extends StrolchComponent implements St this.certificateMap = Collections.synchronizedMap(new HashMap<>()); if (this.reloadSessions) { - List certificates = runPrivileged(ctx -> { + List certificates = runPrivilegedRunnable(ctx -> { Certificate cert = ctx.getCertificate(); return this.privilegeHandler.getPrivilegeHandler(cert).getCertificates(cert).stream() .filter(c -> !c.getUserState().isSystem()).collect(Collectors.toList()); @@ -108,7 +108,7 @@ public class DefaultStrolchSessionHandler extends StrolchComponent implements St public void stop() throws Exception { if (this.reloadSessions) { - runPrivileged(ctx -> getContainer().getPrivilegeHandler().getPrivilegeHandler(ctx.getCertificate()) + runPrivilegedRunnable(ctx -> getContainer().getPrivilegeHandler().getPrivilegeHandler(ctx.getCertificate()) .persistSessions(ctx.getCertificate())); } else if (this.certificateMap != null) {