Skip to content
Permalink
Browse files
CONFIGURATION-804 - Redundant local variable (#113)
  • Loading branch information
arturobernalg committed Jun 26, 2021
1 parent f6abe30 commit 891a6756d1551677fbb685f2af6d41c46b98fdcc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 25 deletions.
@@ -373,8 +373,7 @@ private static BuilderParameters createParameterObject(final String paramcls)
throws Exception
{
final Class<?> cls = ConfigurationUtils.loadClass(paramcls);
final BuilderParameters p = (BuilderParameters) cls.newInstance();
return p;
return (BuilderParameters) cls.newInstance();
}

/**
@@ -164,10 +164,7 @@ public boolean isReloadingRequired()
}
else
{
if (modifiedMillis != lastModifiedMillis)
{
return true;
}
return modifiedMillis != lastModifiedMillis;
}
}
}
@@ -147,9 +147,7 @@ protected FileObject getFileObject()
protected String resolveFileURI()
{
final FileSystem fs = getFileHandler().getFileSystem();
final String uri =
fs.getPath(null, getFileHandler().getURL(), getFileHandler()
.getBasePath(), getFileHandler().getFileName());
return uri;
return fs.getPath(null, getFileHandler().getURL(), getFileHandler()
.getBasePath(), getFileHandler().getFileName());
}
}
@@ -91,16 +91,14 @@ protected void initChildBuilderParameters(
}
}
};
final ConfigurationDeclaration decl =
new ConfigurationDeclaration(parentBuilder, declConfig)
{
@Override
protected Object interpolate(final Object value)
{
return value;
}
};
return decl;
return new ConfigurationDeclaration(parentBuilder, declConfig)
{
@Override
protected Object interpolate(final Object value)
{
return value;
}
};
}

/**
@@ -56,11 +56,9 @@
*/
private static FileExtensionConfigurationBuilderProvider setUpProvider()
{
final FileExtensionConfigurationBuilderProvider provider =
new FileExtensionConfigurationBuilderProvider(
BasicConfigurationBuilder.class.getName(), null,
MATCH_CLASS, DEF_CLASS, EXT, null);
return provider;
return new FileExtensionConfigurationBuilderProvider(
BasicConfigurationBuilder.class.getName(), null,
MATCH_CLASS, DEF_CLASS, EXT, null);
}

/**

0 comments on commit 891a675

Please sign in to comment.