Removing comments, reformatting.

This commit is contained in:
anton-k11 2016-09-22 00:04:53 +03:00
parent f1cfc706df
commit be6939bd97
4 changed files with 14 additions and 25 deletions

View File

@ -60,12 +60,8 @@
<configuration>
<source>1.9</source>
<target>1.9</target>
<verbose>true</verbose>
<!-- <executable>C:\develop\jdks\jdk-9_ea122\bin\javac</executable>
<compilerVersion>1.9</compilerVersion> -->
</configuration>
</plugin>
<plugin>
@ -85,12 +81,7 @@
<!-- maven plugins -->
<!--
<maven-war-plugin.version>2.6</maven-war-plugin.version>
maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version> -->
<maven-compiler-plugin.version>3.6-jigsaw-SNAPSHOT</maven-compiler-plugin.version>
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
<!-- testing -->

View File

@ -1,6 +1,5 @@
package com.baeldung.java9;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;

View File

@ -12,9 +12,9 @@ public class OptionalToStreamTest {
public void testOptionalToStream() {
Optional<String> op = Optional.ofNullable("String value");
Stream<String> strOptionalStream = op.stream();
Stream<String> filteredStream = strOptionalStream.filter(
(str) -> { return str != null && str.startsWith("String"); }
);
Stream<String> filteredStream = strOptionalStream.filter((str) -> {
return str != null && str.startsWith("String");
});
assertEquals(1, filteredStream.count());
}

View File

@ -1,6 +1,5 @@
package com.baeldung.java9;
import java.util.Set;
import org.junit.Test;