garydgregory commented on a change in pull request #206:
URL: https://github.com/apache/commons-compress/pull/206#discussion_r805995048
##########
File path:
src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
##########
@@ -777,7 +777,7 @@ public String getName() {
@Override
public boolean isDirectory() {
final String n = getName();
- return n != null && n.endsWith("/");
+ return n.endsWith("/");
Review comment:
It does seem that `getName()` can never be null, so maybe just `return
getName().endsWith("/");` ? Same for other getName() call sites?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]