GUACAMOLE-1623: Use Java 8 List initializer to fix Java 8 builds.

This commit is contained in:
James Muehlner
2022-06-23 02:18:21 +00:00
parent 7d71391bb3
commit f64bd30e9d

View File

@@ -24,6 +24,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import java.util.List; import java.util.List;
/** /**
@@ -60,7 +61,7 @@ public class WindowsUsernameTest {
assertEquals("localhost", usernameAndDomain.getDomain()); assertEquals("localhost", usernameAndDomain.getDomain());
// It should not match if there are an invalid number of separators // It should not match if there are an invalid number of separators
List<String> invalidSeparators = List.of( List<String> invalidSeparators = Arrays.asList(
"bob@local@host", "local\\host\\bob", "bob@local@host", "local\\host\\bob",
"bob\\local@host", "local@host\\bob"); "bob\\local@host", "local@host\\bob");
invalidSeparators.stream().forEach( invalidSeparators.stream().forEach(