Skip to content

Commit 59056fe

Browse files
committed
Ignore exception
1 parent dc3423f commit 59056fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

reactive-programming/src/main/java/com/example/Service.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ public static IntStream getNumberStream() {
1111
return IntStream.generate(() -> {
1212
try {
1313
Thread.sleep(1000);
14-
} catch (InterruptedException e) {
15-
e.printStackTrace();
14+
} catch (InterruptedException ignored) {
1615
}
1716
return (int) (Math.random() * 10);
1817
});

0 commit comments

Comments
 (0)