Remove redundant type args in briar-headless/build.gradle

The TreeMap<> doesn't need to repeat <String, JarEntry> from
Map<String, JarEntry>.
This commit is contained in:
Sebastian Kürten
2021-03-23 07:42:56 +01:00
parent ae923e5777
commit 400d259a60

View File

@@ -76,7 +76,7 @@ void jarFactory(Jar jarTask, jarArchitecture) {
JarFile srcJarFile = new JarFile(srcFile)
OutputStream destStream = new JarOutputStream(new FileOutputStream(jar))
// Read and sort the entries
Map<String, JarEntry> entries = new TreeMap<String, JarEntry>()
Map<String, JarEntry> entries = new TreeMap<>()
for (JarEntry e : list(srcJarFile.entries())) entries.put(e.getName(), e)
// Write the sorted entries
for (JarEntry srcEntry : entries.values()) {