mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +01:00
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:
@@ -76,7 +76,7 @@ void jarFactory(Jar jarTask, jarArchitecture) {
|
|||||||
JarFile srcJarFile = new JarFile(srcFile)
|
JarFile srcJarFile = new JarFile(srcFile)
|
||||||
OutputStream destStream = new JarOutputStream(new FileOutputStream(jar))
|
OutputStream destStream = new JarOutputStream(new FileOutputStream(jar))
|
||||||
// Read and sort the entries
|
// 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)
|
for (JarEntry e : list(srcJarFile.entries())) entries.put(e.getName(), e)
|
||||||
// Write the sorted entries
|
// Write the sorted entries
|
||||||
for (JarEntry srcEntry : entries.values()) {
|
for (JarEntry srcEntry : entries.values()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user