fix API ClassCastException

This commit is contained in:
Luck 2017-01-19 21:29:54 +00:00
parent 8a8d6f16ae
commit 6dd093fe72
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ public class PermissionHolderDelegate implements PermissionHolder {
@Override @Override
public SortedSet<? extends Node> getPermissions() { public SortedSet<? extends Node> getPermissions() {
return ImmutableSortedSet.copyOf(master.getPermissions(false)); return ImmutableSortedSet.copyOfSorted(master.getPermissions(false));
} }
@Override @Override

View File

@ -83,7 +83,7 @@ public class Log {
private final SortedSet<LogEntry> content; private final SortedSet<LogEntry> content;
public Log(SortedSet<LogEntry> content) { public Log(SortedSet<LogEntry> content) {
this.content = ImmutableSortedSet.copyOf(content); this.content = ImmutableSortedSet.copyOfSorted(content);
} }
public SortedSet<LogEntry> getRecent() { public SortedSet<LogEntry> getRecent() {