BAEL-4871 Spring Conditional Annotations
This commit is contained in:
parent
2d1d9f3ec5
commit
b37973821c
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 { }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue