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