final variables and parameters

seeing some methods it does actually help to enforce the parameters
This commit is contained in:
thatsIch
2015-09-25 23:10:56 +02:00
parent e52400bf26
commit 410d2f1e0d
819 changed files with 9390 additions and 9396 deletions
@@ -20,7 +20,7 @@ public abstract class BaseVersion implements Version
*
* @throws AssertionError if assertion are enabled and revision or build are not natural numbers
*/
public BaseVersion( int revision, Channel channel, int build )
public BaseVersion( final int revision, final Channel channel, final int build )
{
assert revision >= 0;
assert build >= 0;
@@ -64,7 +64,7 @@ public abstract class BaseVersion implements Version
}
@Override
public final boolean equals( Object o )
public final boolean equals( final Object o )
{
if( this == o )
{
@@ -75,7 +75,7 @@ public abstract class BaseVersion implements Version
return false;
}
Version that = (Version) o;
final Version that = (Version) o;
if( this.revision != that.revision() )
{