Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a254eab authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ignore conflicting entries in archive" into main

parents ca5d860d fc3fc0df
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -105,10 +105,10 @@ public class ReadableArchive extends Archive {
                continue;
            }
            entryPath = getEntryPath(entry);
            if (mEntries.containsKey(entryPath)) {
                throw new IOException("Multiple entries with the same name are not supported.");
            if (mEntries.putIfAbsent(entryPath, entry) != null) {
                if (DEBUG) Log.d(TAG, "Ignored conflicting entry for '" + entryPath + "'");
                continue;
            }
            mEntries.put(entryPath, entry);
            if (entry.isDirectory()) {
                mTree.put(entryPath, new ArrayList<ArchiveEntry>());
            }