-
Enhancement
-
Resolution: Fixed
-
P5
-
8u45
-
b73
-
x86
-
windows_8
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8136107 | emb-9 | Ivan Gerasimov | P5 | Resolved | Fixed | team |
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
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
- backported by
-
JDK-8136107 Use Java-style array declarations consistently
-
- Resolved
-