From 8daf45758c1acc9af5f72378adfed4fe1db89e32 Mon Sep 17 00:00:00 2001 From: Julien Ponge Date: Tue, 19 Sep 2023 21:40:08 +0200 Subject: [PATCH] style: reformat workshop samples --- .../_03_composition_transformation/_20_Uni_Branching.java | 4 ++-- .../_03_composition_transformation/_21_Multi_Branching.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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)")); }