fix compile error Java 8
This commit is contained in:
parent
3cd18d0797
commit
4861fa32cf
1 changed files with 2 additions and 5 deletions
|
@ -166,10 +166,6 @@ public class CurrentUser {
|
|||
}
|
||||
}
|
||||
|
||||
private static final ParameterizedTypeReference<Collection<Privilege>> 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<Collection<Privilege>>() {
|
||||
});
|
||||
|
||||
if (exchange.getStatusCodeValue() == HttpStatus.OK.value()) {
|
||||
this.privileges = exchange.getBody().stream()
|
||||
|
|
Loading…
Reference in a new issue