Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed name of annotation and a typo in the code.
  • Loading branch information
gregturn committed May 22, 2013
commit 0a780c5c26d31f851a0fe90c8d2b455bc38d0518
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public abstract class AstUtils {
/**
* Determine if an {@link AnnotatedNode} has one or more of the specified annotations.
*/
public static boolean hasLeastOneAnnotation(AnnotatedNode node, String... annotations) {
public static boolean hasAtLeastOneAnnotation(AnnotatedNode node, String... annotations) {

for (AnnotationNode annotationNode : node.getAnnotations()) {
for (String annotation : annotations) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SpringBatchCompilerAutoConfiguration extends CompilerAutoConfigurat

@Override
public boolean matches(ClassNode classNode) {
return AstUtils.hasLeastOneAnnotation(classNode, "EnableBatchProcessing");
return AstUtils.hasAtLeastOneAnnotation(classNode, "EnableBatchProcessing");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.springframework.bootstrap.cli.compiler.DependencyCustomizer;

/**
* {@link CompilerAutoConfiguration} for Spring Batch.
* {@link CompilerAutoConfiguration} for Spring Integration.
*
* @author Dave Syer
*/
Expand All @@ -39,7 +39,7 @@ public class SpringIntegrationCompilerAutoConfiguration extends CompilerAutoConf
public boolean matches(ClassNode classNode) {
// Slightly weird detection algorithm because there is no @Enable annotation for
// Integration
return AstUtils.hasLeastOneAnnotation(classNode, "MessageEndpoint",
return AstUtils.hasAtLeastOneAnnotation(classNode, "MessageEndpoint",
"EnableIntegrationPatterns");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void applyDependencies(DependencyCustomizer dependencies) {

@Override
public boolean matches(ClassNode classNode) {
return AstUtils.hasLeastOneAnnotation(classNode, "Controller", "EnableWebMvc");
return AstUtils.hasAtLeastOneAnnotation(classNode, "Controller", "EnableWebMvc");
}

@Override
Expand Down