public static void assertPositiveInt(int param) throws ChmParsingException {
        if (param <= 0) {
            throw new ChmParsingException(
                    "resetTable.getBlockAddress().length should be greater than zero");
        }
    }
Checks if int param is greater than zero In case param &lt;= 0 throws an
exception

@param param
@throws ChmParsingException
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/chm/ChmAssert.java