private boolean checkSetDictionaryArrayIndexOutOfBoundsException(Decompressor decompressor) { try { decompressor.setDictionary(new byte[] {(byte) 0}, 0, -1); } catch (ArrayIndexOutOfBoundsException e) { return true; } catch (Exception e) { } return false; }
private boolean checkSetDictionaryNullPointerException(Decompressor decompressor) { try { decompressor.setDictionary(null, 0, 1); } catch (NullPointerException ex) { return true; } catch (Exception ex) { } return false; }