Description
There are several issues with SecurityBasicPermissionSet:
- It doesn't implement hashCode and equals methods. This makes it impossible to use it as part of validation token.
- Collection fields are not marked with @GridToStringInclude annotation, so toString method doesn't actually print out all the information.
- systemPermissions method returns empty collection instead of null by default. This actually means 'no system permissions' even if defaultAllowAll is true.