Strict whitespace format, make private fields final that can be immutable

This commit is contained in:
atomicint
2015-04-08 16:40:15 -04:00
parent 08ffdf9f41
commit 433d4c359a
540 changed files with 1905 additions and 1908 deletions
@@ -5,7 +5,7 @@ package net.burtleburtle.bob.rand;
* An implementation of the <a href="http://www.burtleburtle.net/bob/rand/isaacafa.html">ISAAC</a> psuedorandom number
* generator.
* </p>
*
*
* <pre>
* ------------------------------------------------------------------------------
* Rand.java: By Bob Jenkins. My random number generator, ISAAC.
@@ -20,7 +20,7 @@ package net.burtleburtle.bob.rand;
* <p>
* This class has been changed to be more conformant to Java and javadoc conventions.
* </p>
*
*
* @author Bob Jenkins
*/
public final class IsaacRandom {
@@ -68,12 +68,12 @@ public final class IsaacRandom {
/**
* The internal state.
*/
private int[] mem;
private final int[] mem;
/**
* The results given to the user.
*/
private int[] rsl;
private final int[] rsl;
/**
* Creates the random number generator without an initial seed.
@@ -86,7 +86,7 @@ public final class IsaacRandom {
/**
* Creates the random number generator with the specified seed.
*
*
* @param seed The seed.
*/
public IsaacRandom(int[] seed) {
@@ -100,7 +100,7 @@ public final class IsaacRandom {
/**
* Initialises this random number generator.
*
*
* @param hasSeed Set to {@code true} if a seed was passed to the constructor.
*/
private void init(boolean hasSeed) {
@@ -291,7 +291,7 @@ public final class IsaacRandom {
/**
* Gets the next random value.
*
*
* @return The next random value.
*/
public int nextInt() {