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
@@ -36,14 +36,14 @@ public final class ConfigLoader implements IRecipeLoader
private final File generatedRecipesDir;
private final File userRecipesDir;
public ConfigLoader( File generatedRecipesDir, File userRecipesDir )
public ConfigLoader( final File generatedRecipesDir, final File userRecipesDir )
{
this.generatedRecipesDir = generatedRecipesDir;
this.userRecipesDir = userRecipesDir;
}
@Override
public BufferedReader getFile( @Nonnull String relativeFilePath ) throws Exception
public BufferedReader getFile( @Nonnull final String relativeFilePath ) throws Exception
{
Preconditions.checkNotNull( relativeFilePath );
Preconditions.checkArgument( !relativeFilePath.isEmpty(), "Supplying an empty String will result creating a reader of a folder." );