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

Clean duplicated non-null check in the SunJSSE provider implementation

XMLWordPrintable

      There are a few code check both non-null and instance of a class. The "instanceof" checking could cover the non-null check. For example, the following code:
          if ((cause != null) && (cause instanceof IOException)) {

      could be:
          if (cause instanceof IOException) {

            xuelei Xuelei Fan
            xuelei Xuelei Fan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: