BAEL-4236 | fix the failing build

This commit is contained in:
Vishal 2020-10-27 17:36:56 +05:30
parent 943fa43822
commit a1c8d9317e
2 changed files with 0 additions and 31 deletions

View File

@ -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>

View File

@ -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);
}
}