BAEL-4236 | fix the failing build
This commit is contained in:
parent
943fa43822
commit
a1c8d9317e
|
@ -26,19 +26,6 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>11</source>
|
||||
<target>11</target>
|
||||
<compilerVersion>11</compilerVersion>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<properties>
|
||||
<!-- testing -->
|
||||
<assertj-core.version>3.10.0</assertj-core.version>
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
package com.baeldung;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class CopyListUsingJava10Demo {
|
||||
static List<Integer> copyList(List<Integer> source) {
|
||||
return List.copyOf(source);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
List<Integer> source = Arrays.asList(11, 22, 33);
|
||||
|
||||
List<Integer> destination = copyList(source);
|
||||
|
||||
System.out.println("copy = " + destination);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue