final variables and parameters

This commit is contained in:
thatsIch
2015-09-30 14:24:40 +02:00
parent 059523f543
commit 8b3a954f73
732 changed files with 9253 additions and 9256 deletions
@@ -27,7 +27,7 @@ public final class ReleaseFetcher
private final VersionCheckerConfig config;
private final VersionParser parser;
public ReleaseFetcher( VersionCheckerConfig config, VersionParser parser )
public ReleaseFetcher( final VersionCheckerConfig config, final VersionParser parser )
{
this.config = config;
this.parser = parser;
@@ -50,11 +50,11 @@ public final class ReleaseFetcher
return latestFitRelease;
}
catch( MalformedURLException e )
catch( final MalformedURLException e )
{
AELog.error( e );
}
catch( IOException e )
catch( final IOException e )
{
AELog.warning( "Could not connect to %s.", GITHUB_RELEASES_URL );
}
@@ -62,18 +62,18 @@ public final class ReleaseFetcher
return EXCEPTIONAL_RELEASE;
}
private String getRawReleases( URL url ) throws IOException
private String getRawReleases( final URL url ) throws IOException
{
return IOUtils.toString( url );
}
private FormattedRelease getLatestFitRelease( Iterable<Release> releases )
private FormattedRelease getLatestFitRelease( final Iterable<Release> releases )
{
final String levelInConfig = this.config.level();
final Channel level = Channel.valueOf( levelInConfig );
final int levelOrdinal = level.ordinal();
for( Release release : releases )
for( final Release release : releases )
{
final String rawVersion = release.tag_name;
final String changelog = release.body;