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

Use Java-style array declarations consistently

XMLWordPrintable

    • b73
    • x86
    • windows_8

        A DESCRIPTION OF THE PROBLEM :
        The class documentation of SecureRandom contains examples which have [] on the variable instead of on the type. While valid, this is very uncommon & should be changed.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        byte[] bytes = new byte[20];

        byte[] seed = random.generateSeed(20);
        ACTUAL -
        byte bytes[] = new byte[20];

        byte seed[] = random.generateSeed(20);

        URL OF FAULTY DOCUMENTATION :
        http://docs.oracle.com/javase/8/docs/api/java/security/SecureRandom.html

              igerasim Ivan Gerasimov
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: