Polish
Closes gh-4554
This commit is contained in:
committed by
Stephane Nicoll
parent
30791599a5
commit
efff4a0051
@@ -48,7 +48,7 @@ public class InitCommand extends OptionParsingCommand {
|
||||
|
||||
public InitCommand(InitOptionHandler handler) {
|
||||
super("init",
|
||||
"Initialize a new project using Spring " + "Initialzr (start.spring.io)",
|
||||
"Initialize a new project using Spring " + "Initializr (start.spring.io)",
|
||||
handler);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ class ServiceCapabilitiesReportGenerator {
|
||||
|
||||
/**
|
||||
* Creates an instance using the specified {@link InitializrService}.
|
||||
* @param initializrService the initialzr service
|
||||
* @param initializrService the initializr service
|
||||
*/
|
||||
ServiceCapabilitiesReportGenerator(InitializrService initializrService) {
|
||||
this.initializrService = initializrService;
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.fusesource.jansi.Ansi;
|
||||
import org.fusesource.jansi.AnsiRenderer.Code;
|
||||
|
||||
/**
|
||||
* Simple utitliy class to build an ANSI string when supported by the {@link Terminal}.
|
||||
* Simple utility class to build an ANSI string when supported by the {@link Terminal}.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
|
||||
@@ -59,10 +59,10 @@ public class CommandCompleter extends StringsCompleter {
|
||||
for (OptionHelp optionHelp : command.getOptionsHelp()) {
|
||||
options.addAll(optionHelp.getOptions());
|
||||
}
|
||||
AggregateCompleter arguementCompleters = new AggregateCompleter(
|
||||
AggregateCompleter argumentCompleters = new AggregateCompleter(
|
||||
new StringsCompleter(options), new FileNameCompleter());
|
||||
ArgumentCompleter argumentCompleter = new ArgumentCompleter(argumentDelimiter,
|
||||
arguementCompleters);
|
||||
argumentCompleters);
|
||||
argumentCompleter.setStrict(false);
|
||||
this.commandCompleters.put(command.getName(), argumentCompleter);
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ public class Shell {
|
||||
}
|
||||
|
||||
/**
|
||||
* Final handle an interrup signal (CTRL-C).
|
||||
* Final handle an interrupt signal (CTRL-C).
|
||||
*/
|
||||
protected void handleSigInt() {
|
||||
if (this.commandRunner.handleSigInt()) {
|
||||
|
||||
@@ -92,9 +92,9 @@ public class DependencyCustomizer {
|
||||
return new DependencyCustomizer(this) {
|
||||
@Override
|
||||
protected boolean canAdd() {
|
||||
for (String classname : classNames) {
|
||||
for (String className : classNames) {
|
||||
try {
|
||||
DependencyCustomizer.this.loader.loadClass(classname);
|
||||
DependencyCustomizer.this.loader.loadClass(className);
|
||||
}
|
||||
catch (Exception ex) {
|
||||
return true;
|
||||
@@ -115,9 +115,9 @@ public class DependencyCustomizer {
|
||||
return new DependencyCustomizer(this) {
|
||||
@Override
|
||||
protected boolean canAdd() {
|
||||
for (String classname : classNames) {
|
||||
for (String className : classNames) {
|
||||
try {
|
||||
DependencyCustomizer.this.loader.loadClass(classname);
|
||||
DependencyCustomizer.this.loader.loadClass(className);
|
||||
return false;
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
||||
@@ -56,10 +56,10 @@ public class SpringTestCompilerAutoConfiguration extends CompilerAutoConfigurati
|
||||
GeneratorContext generatorContext, SourceUnit source, ClassNode classNode)
|
||||
throws CompilationFailedException {
|
||||
if (!AstUtils.hasAtLeastOneAnnotation(classNode, "RunWith")) {
|
||||
AnnotationNode runwith = new AnnotationNode(ClassHelper.make("RunWith"));
|
||||
runwith.addMember("value",
|
||||
AnnotationNode runWith = new AnnotationNode(ClassHelper.make("RunWith"));
|
||||
runWith.addMember("value",
|
||||
new ClassExpression(ClassHelper.make("SpringJUnit4ClassRunner")));
|
||||
classNode.addAnnotation(runwith);
|
||||
classNode.addAnnotation(runWith);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import groovy.text.TemplateEngine;
|
||||
import org.codehaus.groovy.control.CompilationFailedException;
|
||||
|
||||
/**
|
||||
* Helpful utilties for working with Groovy {@link Template}s.
|
||||
* Helpful utilities for working with Groovy {@link Template}s.
|
||||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user