This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jxpath.git
commit 44cadb53af65a725ca02b8044df13e71bb9138fb Author: Gary D. Gregory <[email protected]> AuthorDate: Sun Mar 16 13:24:54 2025 -0400 Use final --- .../commons/jxpath/ri/model/beans/BadlyImplementedFactoryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/jxpath/ri/model/beans/BadlyImplementedFactoryTest.java b/src/test/java/org/apache/commons/jxpath/ri/model/beans/BadlyImplementedFactoryTest.java index 2012778..45f752b 100644 --- a/src/test/java/org/apache/commons/jxpath/ri/model/beans/BadlyImplementedFactoryTest.java +++ b/src/test/java/org/apache/commons/jxpath/ri/model/beans/BadlyImplementedFactoryTest.java @@ -51,7 +51,7 @@ public class BadlyImplementedFactoryTest { @Test public void testBadFactoryImplementation() { - JXPathException e = assertThrows(JXPathException.class, () -> context.createPath("foo/bar"), + final JXPathException e = assertThrows(JXPathException.class, () -> context.createPath("foo/bar"), "should fail with JXPathException caused by JXPathAbstractFactoryException"); assertInstanceOf(JXPathAbstractFactoryException.class, e.getCause()); }
