Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5032593

extraneous null check

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 6
    • 5.0
    • security-libs
    • beta
    • generic
    • solaris_9

      investigate whether the null check is necessary:

      ---------------------------------------------

      javax.security.auth.kerberos.ServicePermission

          private static int getMask(String action) {

              if (action == null) {
                  throw new NullPointerException("action can't be null");
              }

      ...

              if (action == null) {
                  return mask;
              }

            weijun Weijun Wang
            claisunw Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: