/** * Applies this delta as a patch to the given text. * * @param target * the text to patch. * @throws PatchFailedException * if the patch cannot be applied. */ public final void patch(final List<Object> target) throws PatchFailedException { verify(target); try { applyTo(target); } catch (Exception e) { throw new PatchFailedException(e.getMessage()); } }
/** * Applies this delta as a patch to the given text. * * @param target * the text to patch. * @throws PatchFailedException * if the patch cannot be applied. */ public final void patch(List target) throws PatchFailedException { verify(target); try { applyTo(target); } catch (Exception e) { throw new PatchFailedException(e.getMessage()); } }
/** * Applies this delta as a patch to the given text. * * @param target * the text to patch. * @throws PatchFailedException * if the patch cannot be applied. */ public final void patch(List<Object> target) throws PatchFailedException { verify(target); try { applyTo(target); } catch (Exception e) { throw new PatchFailedException(e.getMessage()); } }