Duplicate :
|
in java.util.zip.ZipEntry: * @throws NullPointerException if the {@code time} is null public ZipEntry setLastAccessTime(FileTime time) { Objects.requireNonNull(name, "time"); this.atime = time; return this; } time should be checked, not name. Same issue in setCreationTime, setLastModifiedTime Could be written: public ZipEntry setLastAccessTime(FileTime time) { this.atime = Objects.requireNonNull(time, "time");; return this; }
|