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

Redundant override in AES implementation

XMLWordPrintable

      In the AES cipher implementation, the override of engineDoFinal() method in the following code is not necessary as it only calls super.

          /**
           * Finalize crypto operation with ByteBuffers
           *
           * @param input the input ByteBuffer
           * @param output the output ByteBuffer
           *
           * @return output length
           * @throws ShortBufferException
           * @throws IllegalBlockSizeException
           * @throws BadPaddingException
           */
          protected int engineDoFinal(ByteBuffer input, ByteBuffer output)
              throws ShortBufferException, IllegalBlockSizeException,
              BadPaddingException {
              return super.engineDoFinal(input, output);
          }

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

              Created:
              Updated:
              Resolved: