From 4861fa32cfe1a63dcb8c6065db45474d1d12ce4d Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 7 Mar 2019 13:42:04 +0100 Subject: [PATCH] fix compile error Java 8 --- .../gui/service/remote/webservice/auth/CurrentUser.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/remote/webservice/auth/CurrentUser.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/remote/webservice/auth/CurrentUser.java index 475f87f6..75cc04fc 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/service/remote/webservice/auth/CurrentUser.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/remote/webservice/auth/CurrentUser.java @@ -166,10 +166,6 @@ public class CurrentUser { } } - private static final ParameterizedTypeReference> PRIVILEGE_LIST_TYPE_REF = - new ParameterizedTypeReference<>() { - }; - private boolean loadPrivileges() { if (this.privileges != null) { return true; @@ -187,7 +183,8 @@ public class CurrentUser { .toUriString(), HttpMethod.GET, HttpEntity.EMPTY, - PRIVILEGE_LIST_TYPE_REF); + new ParameterizedTypeReference>() { + }); if (exchange.getStatusCodeValue() == HttpStatus.OK.value()) { this.privileges = exchange.getBody().stream()