Fix warnings and stuff
This commit is contained in:
@@ -90,7 +90,7 @@ public class PermissionExpressionParser {
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
/* TODO move to test code
|
||||
public static void main(String[] args) {
|
||||
java.util.List<String> pList = java.util.Arrays.asList("p1.cmd", "p1.toto", "p2.lol");
|
||||
LitteralPermissionTester tester = p -> pList.contains(p);
|
||||
|
@@ -196,7 +196,7 @@ public class PermissionsResolver {
|
||||
public boolean equals(Object obj) {
|
||||
return obj instanceof DataCacheKey o
|
||||
&& Objects.equals(name, o.name)
|
||||
&& Objects.equals(type, o.type)
|
||||
&& type == o.type
|
||||
&& dataType == o.dataType;
|
||||
}
|
||||
}
|
||||
@@ -538,8 +538,8 @@ public class PermissionsResolver {
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj instanceof PermCacheKey o
|
||||
&& type == o.type
|
||||
&& Objects.equals(name, o.name)
|
||||
&& Objects.equals(type, o.type)
|
||||
&& Objects.equals(permission, o.permission)
|
||||
&& Objects.equals(server, o.server)
|
||||
&& Objects.equals(world, o.world);
|
||||
|
Reference in New Issue
Block a user