Skip to content

Commit 51e6c8c

Browse files
committed
Merge pull request #1 from gregturn/fix-annotation-and-typos
# By Greg Turnquist * fix-annotation-and-typos: Fixed name of annotation and a typo in the code.
2 parents 25f6840 + 6c4e39d commit 51e6c8c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/compiler/AstUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public abstract class AstUtils {
2929
/**
3030
* Determine if an {@link AnnotatedNode} has one or more of the specified annotations.
3131
*/
32-
public static boolean hasLeastOneAnnotation(AnnotatedNode node, String... annotations) {
32+
public static boolean hasAtLeastOneAnnotation(AnnotatedNode node, String... annotations) {
3333

3434
for (AnnotationNode annotationNode : node.getAnnotations()) {
3535
for (String annotation : annotations) {

Diff for: spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/compiler/autoconfigure/SpringBatchCompilerAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class SpringBatchCompilerAutoConfiguration extends CompilerAutoConfigurat
3232

3333
@Override
3434
public boolean matches(ClassNode classNode) {
35-
return AstUtils.hasLeastOneAnnotation(classNode, "EnableBatchProcessing");
35+
return AstUtils.hasAtLeastOneAnnotation(classNode, "EnableBatchProcessing");
3636
}
3737

3838
@Override

Diff for: spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/compiler/autoconfigure/SpringIntegrationCompilerAutoConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.springframework.bootstrap.cli.compiler.DependencyCustomizer;
3030

3131
/**
32-
* {@link CompilerAutoConfiguration} for Spring Batch.
32+
* {@link CompilerAutoConfiguration} for Spring Integration.
3333
*
3434
* @author Dave Syer
3535
*/
@@ -39,7 +39,7 @@ public class SpringIntegrationCompilerAutoConfiguration extends CompilerAutoConf
3939
public boolean matches(ClassNode classNode) {
4040
// Slightly weird detection algorithm because there is no @Enable annotation for
4141
// Integration
42-
return AstUtils.hasLeastOneAnnotation(classNode, "MessageEndpoint",
42+
return AstUtils.hasAtLeastOneAnnotation(classNode, "MessageEndpoint",
4343
"EnableIntegrationPatterns");
4444
}
4545

Diff for: spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/compiler/autoconfigure/SpringMvcCompilerAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void applyDependencies(DependencyCustomizer dependencies) {
5050

5151
@Override
5252
public boolean matches(ClassNode classNode) {
53-
return AstUtils.hasLeastOneAnnotation(classNode, "Controller", "EnableWebMvc");
53+
return AstUtils.hasAtLeastOneAnnotation(classNode, "Controller", "EnableWebMvc");
5454
}
5555

5656
@Override

0 commit comments

Comments
 (0)