diff --git a/workshop-examples/src/main/java/_03_composition_transformation/_20_Uni_Branching.java b/workshop-examples/src/main/java/_03_composition_transformation/_20_Uni_Branching.java index 1a09822c3..cfea90eaa 100755 --- a/workshop-examples/src/main/java/_03_composition_transformation/_20_Uni_Branching.java +++ b/workshop-examples/src/main/java/_03_composition_transformation/_20_Uni_Branching.java @@ -2,10 +2,10 @@ //DEPS io.smallrye.reactive:mutiny:2.4.0 package _03_composition_transformation; -import io.smallrye.mutiny.Uni; - import java.util.Random; +import io.smallrye.mutiny.Uni; + public class _20_Uni_Branching { public static void main(String[] args) throws InterruptedException { diff --git a/workshop-examples/src/main/java/_03_composition_transformation/_21_Multi_Branching.java b/workshop-examples/src/main/java/_03_composition_transformation/_21_Multi_Branching.java index f5f60a53d..584983ac4 100755 --- a/workshop-examples/src/main/java/_03_composition_transformation/_21_Multi_Branching.java +++ b/workshop-examples/src/main/java/_03_composition_transformation/_21_Multi_Branching.java @@ -2,11 +2,11 @@ //DEPS io.smallrye.reactive:mutiny:2.4.0 package _03_composition_transformation; +import java.util.Random; + import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; -import java.util.Random; - public class _21_Multi_Branching { public static void main(String[] args) throws InterruptedException { @@ -28,7 +28,7 @@ public static void main(String[] args) throws InterruptedException { } static Uni drop() { - return Uni.createFrom().nullItem() + return Uni.createFrom(). nullItem() .onItem().invoke(() -> System.out.println("(dropping negative value)")); }