Use String.isEmpty()
@@ -1312,7 +1312,7 @@ private void addUnicodeExtraFields(final ZipArchiveEntry ze, final boolean encod
}
final String comm = ze.getComment();
- if (comm != null && !"".equals(comm)) {
+ if (comm != null && !comm.isEmpty()) {
final boolean commentEncodable = zipEncoding.canEncode(comm);
