srdo commented on a change in pull request #3055: STORM-3440: client: fix all 
checkstyle warnings
URL: https://github.com/apache/storm/pull/3055#discussion_r299130974
 
 

 ##########
 File path: 
storm-client/src/jvm/org/apache/storm/security/auth/authorizer/DRPCSimpleACLAuthorizer.java
 ##########
 @@ -124,16 +124,15 @@ protected boolean 
permitClientOrInvocationRequest(ReqContext context, Map<String
                 String principal = getUserFromContext(context);
                 String user = getLocalUserFromContext(context);
                 if (value == null) {
-                    LOG.warn("Configuration for function '" + function + "' is 
" +
-                             "invalid: it should have both an invocation user 
" +
-                             "and a list of client users defined.");
-                } else if (value instanceof Set &&
-                           (((Set<String>) value).contains(principal) ||
-                            ((Set<String>) value).contains(user))) {
+                    LOG.warn("Configuration for function '" + function + "' is 
"
+                            + "invalid: it should have both an invocation user 
and a list of client users defined.");
+                } else if (value instanceof Set
+                        && (((Set<String>) value).contains(principal)
+                                || ((Set<String>) value).contains(user))) {
                     return true;
-                } else if (value instanceof String &&
-                           (value.equals(principal) ||
-                            value.equals(user))) {
+                } else if (value instanceof String
+                        && (value.equals(principal)
+                                || value.equals(user))) {
 
 Review comment:
   Same

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


With regards,
Apache Git Services

Reply via email to