From b37973821c44377b9a03df81f5d634e66464ffb9 Mon Sep 17 00:00:00 2001 From: majewsk6 Date: Sun, 16 May 2021 20:04:35 +0200 Subject: [PATCH] BAEL-4871 Spring Conditional Annotations --- .../baeldung/annotations/conditional/IsDevEnvCondition.java | 2 +- .../com/baeldung/annotations/conditional/Java8OrJava9.java | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/spring-boot-modules/spring-boot-annotations/src/main/java/com/baeldung/annotations/conditional/IsDevEnvCondition.java b/spring-boot-modules/spring-boot-annotations/src/main/java/com/baeldung/annotations/conditional/IsDevEnvCondition.java index e0da72d731..6da17d68c5 100644 --- a/spring-boot-modules/spring-boot-annotations/src/main/java/com/baeldung/annotations/conditional/IsDevEnvCondition.java +++ b/spring-boot-modules/spring-boot-annotations/src/main/java/com/baeldung/annotations/conditional/IsDevEnvCondition.java @@ -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"); } } diff --git a/spring-boot-modules/spring-boot-annotations/src/main/java/com/baeldung/annotations/conditional/Java8OrJava9.java b/spring-boot-modules/spring-boot-annotations/src/main/java/com/baeldung/annotations/conditional/Java8OrJava9.java index 5a19d7ef77..9574c60ce1 100644 --- a/spring-boot-modules/spring-boot-annotations/src/main/java/com/baeldung/annotations/conditional/Java8OrJava9.java +++ b/spring-boot-modules/spring-boot-annotations/src/main/java/com/baeldung/annotations/conditional/Java8OrJava9.java @@ -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 { } }