VinayakMarraiya230920 commented on code in PR #374:
URL: https://github.com/apache/atlas/pull/374#discussion_r2209493496


##########
authorization/src/main/java/org/apache/atlas/authorize/AtlasAccessRequest.java:
##########
@@ -173,13 +172,13 @@ public String getEntityId(AtlasEntityHeader entity, 
AtlasTypeRegistry typeRegist
     public Set<String> getClassificationNames(AtlasEntityHeader entity) {
         final Set<String> ret;
 
-        if (entity == null || entity.getClassifications() == null) {
+        if (entity == null || entity.getClassificationNames() == null) {
             ret = Collections.emptySet();
         } else {
             ret = new HashSet<>();
 
-            for (AtlasClassification classify : entity.getClassifications()) {
-                ret.add(classify.getTypeName());
+            for (String classify : entity.getClassificationNames()) {

Review Comment:
   Suggested changes are done



-- 
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]

Reply via email to