Merge branch '2.3.x' into 2.4.x

This commit is contained in:
Phillip Webb
2020-12-15 19:46:04 -08:00
6 changed files with 11 additions and 6 deletions

View File

@@ -644,7 +644,7 @@ abstract class AbstractPackagerTests<P extends Packager> {
private static final Layer DEFAULT_LAYER = new Layer("default");
private Set<Layer> layers = new LinkedHashSet<Layer>();
private Set<Layer> layers = new LinkedHashSet<>();
private Map<String, Layer> libraries = new HashMap<>();

View File

@@ -643,7 +643,7 @@ class JarFileTests {
@Test
void iterator() {
Iterator<JarEntry> iterator = this.jarFile.iterator();
List<String> names = new ArrayList<String>();
List<String> names = new ArrayList<>();
while (iterator.hasNext()) {
names.add(iterator.next().getName());
}