SEC-436: Add hashCode() methods.
This commit is contained in:
parent
95735017e6
commit
c8d5374602
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue