mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-09 03:52:48 +00:00
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() {
|
public String toString() {
|
||||||
return "BasePermission[" + getPattern() + "=" + mask + "]";
|
return "BasePermission[" + getPattern() + "=" + mask + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
return this.mask;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,10 @@ public class CumulativePermission implements Permission {
|
|||||||
return (this.mask == rhs.getMask());
|
return (this.mask == rhs.getMask());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
return this.mask;
|
||||||
|
}
|
||||||
|
|
||||||
public int getMask() {
|
public int getMask() {
|
||||||
return this.mask;
|
return this.mask;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user