Skip to content

Commit b070f3d

Browse files
committed
fixed formatting
1 parent 4d8f0a4 commit b070f3d

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎vavr/src/main/java/com/baeldung/samples/java/vavr/VavrSampler.java‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
package com.baeldung.samples.java.vavr;
22

3-
import io.vavr.collection.Stream;
43
import java.util.ArrayList;
54
import java.util.List;
65

6+
import io.vavr.collection.Stream;
77

88
/**
99
*
1010
* @author baeldung
1111
*/
1212
public class VavrSampler {
1313

14-
static int[] intArray = new int[]{1, 2, 4};
15-
static List<Integer> intList = new ArrayList<Integer>();
16-
static int[][] intOfInts = new int[][]{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
14+
static int[] intArray = new int[] { 1, 2, 4 };
15+
static List<Integer> intList = new ArrayList<>();
16+
static int[][] intOfInts = new int[][] { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } };
1717

1818
public static void main(String[] args) {
19-
vavrStreamElementAccess();
19+
vavrStreamElementAccess();
2020
System.out.println("====================================");
2121
vavrParallelStreamAccess();
2222
System.out.println("====================================");
@@ -43,12 +43,12 @@ public static void vavrParallelStreamAccess() {
4343
System.out.println("Vavr Stream Concurrent Modification");
4444
System.out.println("====================================");
4545
Stream<Integer> vavrStream = Stream.ofAll(intList);
46-
//intList.add(5);
46+
// intList.add(5);
4747
vavrStream.forEach(i -> System.out.println("in a Vavr Stream: " + i));
4848

49-
// Stream<Integer> wrapped = Stream.ofAll(intArray);
50-
// intArray[2] = 5;
51-
// wrapped.forEach(i -> System.out.println("Vavr looped " + i));
49+
// Stream<Integer> wrapped = Stream.ofAll(intArray);
50+
// intArray[2] = 5;
51+
// wrapped.forEach(i -> System.out.println("Vavr looped " + i));
5252
}
5353

5454
public static void jdkFlatMapping() {
@@ -65,9 +65,9 @@ public static void vavrFlatMapping() {
6565
System.out.println("====================================");
6666
Stream.of(42)
6767
.flatMap(i -> Stream.continually(() -> {
68-
System.out.println("nested call");
69-
return 42;
70-
}))
68+
System.out.println("nested call");
69+
return 42;
70+
}))
7171
.get(0);
7272
}
7373

0 commit comments

Comments
 (0)