akankshajain18 commented on a change in pull request #24:
URL: 
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/24#discussion_r519358195



##########
File path: 
src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverFactoryActivator.java
##########
@@ -128,6 +129,9 @@
 
     private volatile ResourceResolverFactoryConfig config = DEFAULT_CONFIG;
 
+    /** Alias path whitelist */
+    private AtomicReferenceArray<String> aliasPathAllowList;

Review comment:
       Initially, Volite keyword is used but sonar bot suggestion suggested 
using **AtomicReferenceArray** as should not have Non-primitive fields as 
"volatile" and throwing bug in the PR.
   ------------------------------------------------------------------
   Update: Sonar bot does not support volatile keyword for non-primitive fields 
and suggested to use **_AtomicReferenceArray_**. 




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to