thrau / jarchivelib

A simple archiving and compression library for Java
https://github.com/thrau/jarchivelib
Apache License 2.0
198 stars 36 forks source link

isDirectory method updated #95

Closed mohammadJaliliTorkamani closed 6 months ago

mohammadJaliliTorkamani commented 12 months ago

added two assertions into the isDirectory method (located at /src/main/java/org/rauschig/jarchivelib/CommonsArchiveEntry.java). the added assertions are as follows:

// Entry should not be null assert entry != null : "entry should not be null"; // Entry should be a directory assert entry.isDirectory() : "entry should be a directory";

which would make running the program more reliable.