Skip to content

Commit be6939b

Browse files
committed
Removing comments, reformatting.
1 parent f1cfc70 commit be6939b

4 files changed

Lines changed: 14 additions & 25 deletions

File tree

‎core-java-9/pom.xml‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,8 @@
6060
<configuration>
6161
<source>1.9</source>
6262
<target>1.9</target>
63-
6463
<verbose>true</verbose>
65-
<!-- <executable>C:\develop\jdks\jdk-9_ea122\bin\javac</executable>
66-
<compilerVersion>1.9</compilerVersion> -->
6764
</configuration>
68-
6965
</plugin>
7066

7167
<plugin>
@@ -85,12 +81,7 @@
8581

8682

8783
<!-- maven plugins -->
88-
<!--
89-
<maven-war-plugin.version>2.6</maven-war-plugin.version>
90-
maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version> -->
91-
<maven-compiler-plugin.version>3.6-jigsaw-SNAPSHOT</maven-compiler-plugin.version>
92-
93-
84+
<maven-compiler-plugin.version>3.6-jigsaw-SNAPSHOT</maven-compiler-plugin.version>
9485
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
9586

9687
<!-- testing -->

‎core-java-9/src/test/java/com/baeldung/java9/MultiResultionImageTest.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.baeldung.java9;
22

3-
import static org.junit.Assert.assertTrue;
43
import static org.junit.Assert.assertEquals;
54
import static org.junit.Assert.assertSame;
65

‎core-java-9/src/test/java/com/baeldung/java9/OptionalToStreamTest.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
import static org.junit.Assert.assertEquals;
88

99
public class OptionalToStreamTest {
10-
10+
1111
@Test
12-
public void testOptionalToStream(){
12+
public void testOptionalToStream() {
1313
Optional<String> op = Optional.ofNullable("String value");
1414
Stream<String> strOptionalStream = op.stream();
15-
Stream<String> filteredStream = strOptionalStream.filter(
16-
(str) -> { return str != null && str.startsWith("String"); }
17-
);
15+
Stream<String> filteredStream = strOptionalStream.filter((str) -> {
16+
return str != null && str.startsWith("String");
17+
});
1818
assertEquals(1, filteredStream.count());
19-
19+
2020
}
2121
}

‎core-java-9/src/test/java/com/baeldung/java9/SetExamplesTest.java‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.baeldung.java9;
22

3-
43
import java.util.Set;
54
import org.junit.Test;
65

@@ -9,18 +8,18 @@
98
public class SetExamplesTest {
109

1110
@Test
12-
public void testUnmutableSet(){
11+
public void testUnmutableSet() {
1312
Set<String> strKeySet = Set.of("key1", "key2", "key3");
14-
try{
13+
try {
1514
strKeySet.add("newKey");
16-
}catch(UnsupportedOperationException uoe){
15+
} catch (UnsupportedOperationException uoe) {
1716
}
18-
assertEquals(strKeySet.size(), 3);
17+
assertEquals(strKeySet.size(), 3);
1918
}
20-
19+
2120
@Test
22-
public void testArrayToSet(){
23-
Integer [] intArray = new Integer[]{1,2,3,4,5,6,7,8,9,0};
21+
public void testArrayToSet() {
22+
Integer[] intArray = new Integer[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
2423
Set<Integer> intSet = Set.of(intArray);
2524
assertEquals(intSet.size(), intArray.length);
2625
}

0 commit comments

Comments
 (0)