Basic reformat, hit once, hope never again

This commit is contained in:
thatsIch
2015-04-03 08:54:31 +02:00
parent 4ff1631f89
commit d34c988c88
886 changed files with 31400 additions and 30990 deletions
@@ -14,8 +14,8 @@ public abstract class BaseVersion implements Version
/**
* @param revision revision in natural number
* @param channel channel
* @param build build in natural number
* @param channel channel
* @param build build in natural number
*
* @throws AssertionError if assertion are enabled and revision or build are not natural numbers
*/
@@ -65,16 +65,16 @@ public abstract class BaseVersion implements Version
@Override
public final boolean equals( Object o )
{
if ( this == o )
if( this == o )
return true;
if ( !( o instanceof Version ) )
if( !( o instanceof Version ) )
return false;
Version that = (Version) o;
if ( this.revision != that.revision() )
if( this.revision != that.revision() )
return false;
if ( this.build != that.build() )
if( this.build != that.build() )
return false;
return this.channel == that.channel();
}
@@ -20,12 +20,12 @@ public final class DefaultVersion extends BaseVersion
@Override
public boolean isNewerAs( Version maybeOlder )
{
if ( this.revision() > maybeOlder.revision() )
if( this.revision() > maybeOlder.revision() )
{
return true;
}
if ( this.channel().compareTo( maybeOlder.channel() ) > 0 )
if( this.channel().compareTo( maybeOlder.channel() ) > 0 )
{
return true;
}
@@ -25,7 +25,7 @@ public final class ModVersionFetcher implements VersionFetcher
@Override
public Version get()
{
if ( this.rawModVersion.equals( "@version@" ) || this.rawModVersion.contains( "pr" ) )
if( this.rawModVersion.equals( "@version@" ) || this.rawModVersion.contains( "pr" ) )
{
return new DoNotCheckVersion();
}
@@ -103,9 +103,9 @@ public final class VersionParser
{
assert rawChannel.equalsIgnoreCase( Channel.Alpha.name() ) || rawChannel.equalsIgnoreCase( Channel.Beta.name() ) || rawChannel.equalsIgnoreCase( Channel.Release.name() );
for ( Channel channel : Channel.values() )
for( Channel channel : Channel.values() )
{
if ( channel.name().equalsIgnoreCase( rawChannel ) )
if( channel.name().equalsIgnoreCase( rawChannel ) )
{
return channel;
}
@@ -49,7 +49,7 @@ public final class ReleaseFetcher
return latestFitRelease;
}
catch ( Exception e )
catch( Exception e )
{
AELog.error( e );
@@ -68,14 +68,14 @@ public final class ReleaseFetcher
final Channel level = Channel.valueOf( levelInConfig );
final int levelOrdinal = level.ordinal();
for ( Release release : releases )
for( Release release : releases )
{
final String rawVersion = release.tag_name;
final String changelog = release.body;
final Version version = this.parser.parse( rawVersion );
if ( version.channel().ordinal() >= levelOrdinal )
if( version.channel().ordinal() >= levelOrdinal )
{
return new DefaultFormattedRelease( version, changelog );
}