Remove "final" keywords

Closes gh-11294
This commit is contained in:
Johnny Lim
2017-12-08 22:29:03 +09:00
committed by Stephane Nicoll
parent bd7bd6edc8
commit 6d54072e04
48 changed files with 60 additions and 60 deletions

View File

@@ -59,7 +59,7 @@ public class HelpCommand extends AbstractCommand {
@Override
public Collection<OptionHelp> getOptionsHelp() {
List<OptionHelp> help = new ArrayList<>();
for (final Command command : this.commandRunner) {
for (Command command : this.commandRunner) {
if (isHelpShown(command)) {
help.add(new OptionHelp() {

View File

@@ -65,7 +65,7 @@ public class SpringApplicationRunner {
* @param sources the files to compile/watch
* @param args input arguments
*/
SpringApplicationRunner(final SpringApplicationRunnerConfiguration configuration,
SpringApplicationRunner(SpringApplicationRunnerConfiguration configuration,
String[] sources, String... args) {
this.configuration = configuration;
this.sources = sources.clone();

View File

@@ -88,7 +88,7 @@ public class DependencyCustomizer {
* @param classNames the class names to test
* @return a nested {@link DependencyCustomizer}
*/
public DependencyCustomizer ifAnyMissingClasses(final String... classNames) {
public DependencyCustomizer ifAnyMissingClasses(String... classNames) {
return new DependencyCustomizer(this) {
@Override
protected boolean canAdd() {
@@ -111,7 +111,7 @@ public class DependencyCustomizer {
* @param classNames the class names to test
* @return a nested {@link DependencyCustomizer}
*/
public DependencyCustomizer ifAllMissingClasses(final String... classNames) {
public DependencyCustomizer ifAllMissingClasses(String... classNames) {
return new DependencyCustomizer(this) {
@Override
protected boolean canAdd() {
@@ -135,7 +135,7 @@ public class DependencyCustomizer {
* @param paths the paths to test
* @return a nested {@link DependencyCustomizer}
*/
public DependencyCustomizer ifAllResourcesPresent(final String... paths) {
public DependencyCustomizer ifAllResourcesPresent(String... paths) {
return new DependencyCustomizer(this) {
@Override
protected boolean canAdd() {
@@ -161,7 +161,7 @@ public class DependencyCustomizer {
* @param paths the paths to test
* @return a nested {@link DependencyCustomizer}
*/
public DependencyCustomizer ifAnyResourcesPresent(final String... paths) {
public DependencyCustomizer ifAnyResourcesPresent(String... paths) {
return new DependencyCustomizer(this) {
@Override
protected boolean canAdd() {

View File

@@ -179,7 +179,7 @@ public class ExtendedGroovyClassLoader extends GroovyClassLoader {
parent.getParent());
}
private URL[] getGroovyJars(final ClassLoader parent) {
private URL[] getGroovyJars(ClassLoader parent) {
Set<URL> urls = new HashSet<>();
findGroovyJarsDirectly(parent, urls);
if (urls.isEmpty()) {

View File

@@ -85,7 +85,7 @@ public class GroovyCompiler {
* Create a new {@link GroovyCompiler} instance.
* @param configuration the compiler configuration
*/
public GroovyCompiler(final GroovyCompilerConfiguration configuration) {
public GroovyCompiler(GroovyCompilerConfiguration configuration) {
this.configuration = configuration;
this.loader = createLoader(configuration);

View File

@@ -100,7 +100,7 @@ public class CliTester implements TestRule {
return getOutput();
}
private <T extends OptionParsingCommand> Future<T> submitCommand(final T command,
private <T extends OptionParsingCommand> Future<T> submitCommand(T command,
String... args) {
clearUrlHandler();
final String[] sources = getSources(args);
@@ -165,7 +165,7 @@ public class CliTester implements TestRule {
}
@Override
public Statement apply(final Statement base, final Description description) {
public Statement apply(Statement base, Description description) {
final Statement statement = CliTester.this.outputCapture
.apply(new RunLauncherStatement(base), description);
return new Statement() {