ctubbsii commented on code in PR #111:
URL: https://github.com/apache/accumulo-access/pull/111#discussion_r2933501145
##########
modules/core/src/main/java/org/apache/accumulo/access/impl/AuthorizationsImpl.java:
##########
@@ -18,23 +18,39 @@
*/
package org.apache.accumulo.access.impl;
-import java.io.Serial;
import java.util.Iterator;
import java.util.Set;
import org.apache.accumulo.access.Authorizations;
-public record AuthorizationsImpl(Set<String> authorizations) implements
Authorizations {
-
- @Serial
- private static final long serialVersionUID = 1L;
+public class AuthorizationsImpl implements Authorizations {
static final Authorizations EMPTY = new AuthorizationsImpl(Set.of());
- public AuthorizationsImpl(Set<String> authorizations) {
+ private final Set<String> authorizations;
+
+ AuthorizationsImpl(Set<String> authorizations) {
this.authorizations = Set.copyOf(authorizations);
}
+ @Override
+ public boolean equals(Object o) {
+ if (o instanceof AuthorizationsImpl oa) {
+ return authorizations.equals(oa.authorizations);
+ }
+ return false;
Review Comment:
Applied in 52350947b2729368e8cfc3e9101e3dda896970b6
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]