/** * Check whether the parser is in a valid and usable state, and if not, throw a runtime exception. * * @throws IllegalStateException thrown if the parser is in a state such that it can not be used */ protected void checkValidState() throws IllegalStateException { if (isReturned()) { throw new IllegalStateException("DocumentBuilderProxy has already been returned to its owning pool"); } }
/** * Check whether the parser is in a valid and usable state, and if not, throw a runtime exception. * * @throws IllegalStateException thrown if the parser is in a state such that it can not be used */ protected void checkValidState() throws IllegalStateException { if (isReturned()) { throw new IllegalStateException("DocumentBuilderProxy has already been returned to its owning pool"); } }
if (proxiedBuilder.isReturned()) { return;
if (proxiedBuilder.isReturned()) { return;