ctubbsii commented on PR #112: URL: https://github.com/apache/accumulo-access/pull/112#issuecomment-4057631315
> > Doesn't it guarantee immutability of the set also? > > Yeah, if newEvaluator took a set it would need to do defensive copy in addition to validating. In a unit test we could modify the set passed to newEvaluator after creating it to ensure those modifications have no effect. We're already making the defensive copy to convert the set to this Authorizations object. Doing it at evaluator construction time instead, along with the validation, is fewer API calls for the library user to do the evaluation. -- 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]
