From 8b69d734d7fdb06ec50dae32c7a6227b83e3946d Mon Sep 17 00:00:00 2001 From: Marius Larsen Date: Sat, 3 Sep 2022 11:13:10 +0200 Subject: [PATCH] bug fix to avoid fallthrough --- .../vavr/src/test/java/com/baeldung/vavr/VavrUnitTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vavr-modules/vavr/src/test/java/com/baeldung/vavr/VavrUnitTest.java b/vavr-modules/vavr/src/test/java/com/baeldung/vavr/VavrUnitTest.java index b1a9405605..39bcbea1de 100644 --- a/vavr-modules/vavr/src/test/java/com/baeldung/vavr/VavrUnitTest.java +++ b/vavr-modules/vavr/src/test/java/com/baeldung/vavr/VavrUnitTest.java @@ -323,13 +323,13 @@ public class VavrUnitTest { if (input == 0) { output = "zero"; } - if (input == 1) { + else if (input == 1) { output = "one"; } - if (input == 2) { + else if (input == 2) { output = "two"; } - if (input == 3) { + else if (input == 3) { output = "three"; } else { output = "unknown";