This commit is contained in:
Phillip Webb
2020-12-15 19:44:40 -08:00
parent 76198f9a8d
commit 29300530c6
5 changed files with 9 additions and 4 deletions

View File

@@ -645,7 +645,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());
}