The if statement belows uses a single & instead of &&. Therefore it is
not using short-circut logic. This seems like a typo. Does anyone
object if I change the '&' to '&&'?

    String delim = "";
    shellState.getReader().printString("System permissions: ");
    for (SystemPermission p : SystemPermission.values()) {
      if 
(shellState.getConnector().securityOperations().hasSystemPermission(user,
p) & p != null) {
        shellState.getReader().printString(delim + "System." + p.name());
        delim = ", ";
      }
    }
    shellState.getReader().printNewline();

Reply via email to