the reason for the name check no longer exists
It used to be there to avoid unnecessary updates of ZipFile's map of
entry name => entry but the handling in ZipFile has been changed to
only add entries after all fields have been resolved in later
revisions.
@@ -238,9 +238,7 @@ static void setNameAndCommentFromExtraFields(final ZipArchiveEntry ze,
final String newName = getUnicodeStringIfOriginalMatches(name,
originalNameBytes);
if (newName != null) {
- if (!originalName.equals(newName)) {
ze.setName(newName);
- }
ze.setNameSource(ZipArchiveEntry.NameSource.UNICODE_EXTRA_FIELD);
}
