SEC-436: Add hashCode() methods.
This commit is contained in:
@@ -161,4 +161,8 @@ public final class BasePermission implements Permission {
|
||||
public String toString() {
|
||||
return "BasePermission[" + getPattern() + "=" + mask + "]";
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.mask;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,8 +56,12 @@ public class CumulativePermission implements Permission {
|
||||
|
||||
return (this.mask == rhs.getMask());
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.mask;
|
||||
}
|
||||
|
||||
public int getMask() {
|
||||
public int getMask() {
|
||||
return this.mask;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user