This is an automated email from the ASF dual-hosted git repository. daim pushed a commit to branch OAK-11763 in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit fc7a426d7d9ceb01d04d5d0c69267d252e2a2fa7 Author: Rishabh Kumar <[email protected]> AuthorDate: Thu Jun 19 12:03:04 2025 +0530 OAK-11763 : replaced Throwables.getRootCause with commons-lang3 --- .../jackrabbit/oak/plugins/document/DocumentNodeStoreTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreTest.java index 3b78a0dec4..ee7c09f2ef 100644 --- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreTest.java +++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreTest.java @@ -95,7 +95,6 @@ import java.util.concurrent.locks.ReentrantReadWriteLock; import javax.jcr.InvalidItemStateException; import org.apache.commons.lang3.exception.ExceptionUtils; -import org.apache.jackrabbit.guava.common.base.Throwables; import org.apache.jackrabbit.oak.api.CommitFailedException; import org.apache.jackrabbit.oak.api.PropertyState; import org.apache.jackrabbit.oak.api.Type; @@ -3026,7 +3025,7 @@ public class DocumentNodeStoreTest { merge(ns, b1); fail(); } catch(Exception e){ - assertSame(testException, Throwables.getRootCause(e)); + assertSame(testException, ExceptionUtils.getRootCause(e)); } } @@ -4096,7 +4095,7 @@ public class DocumentNodeStoreTest { fail("must fail with DocumentStoreException"); } catch (Exception e) { // must not hit last line of defence (ReadOnlyDocumentStoreWrapper) - assertFalse(Throwables.getRootCause(e) instanceof UnsupportedOperationException); + assertFalse(ExceptionUtils.getRootCause(e) instanceof UnsupportedOperationException); } }
