BAEL-4871 Spring Conditional Annotations

This commit is contained in:
majewsk6 2021-05-16 20:04:35 +02:00
parent 2d1d9f3ec5
commit b37973821c
2 changed files with 3 additions and 5 deletions

View File

@ -8,6 +8,6 @@ public class IsDevEnvCondition implements Condition {
@Override
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
return System.getProperty("env").equals("dev");;
return System.getProperty("env").equals("dev");
}
}

View File

@ -9,10 +9,8 @@ public class Java8OrJava9 extends AnyNestedCondition {
}
@Conditional(Java8Condition.class)
static class Java8 {
}
static class Java8 { }
@Conditional(Java9Condition.class)
static class Java9 {
}
static class Java9 { }
}