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() {
|
private boolean loadPrivileges() {
|
||||||
if (this.privileges != null) {
|
if (this.privileges != null) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -187,7 +183,8 @@ public class CurrentUser {
|
||||||
.toUriString(),
|
.toUriString(),
|
||||||
HttpMethod.GET,
|
HttpMethod.GET,
|
||||||
HttpEntity.EMPTY,
|
HttpEntity.EMPTY,
|
||||||
PRIVILEGE_LIST_TYPE_REF);
|
new ParameterizedTypeReference<Collection<Privilege>>() {
|
||||||
|
});
|
||||||
|
|
||||||
if (exchange.getStatusCodeValue() == HttpStatus.OK.value()) {
|
if (exchange.getStatusCodeValue() == HttpStatus.OK.value()) {
|
||||||
this.privileges = exchange.getBody().stream()
|
this.privileges = exchange.getBody().stream()
|
||||||
|
|
Loading…
Reference in a new issue