Skip to content

Commit d29b460

Browse files
committed
Merge branch 'master' into release
2 parents a65c72d + 242dc67 commit d29b460

27 files changed

+89
-100
lines changed

src/changes/changes.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ The <action> type attribute can be add,update,fix,remove.
110110
<action dev="ggregory" type="fix" due-to="Gary Gregory">Use generics internally.</action>
111111
<action dev="ggregory" type="fix" due-to="Gary Gregory">NodeSet.getPointers() is now typed with generics.</action>
112112
<action dev="ggregory" type="fix" due-to="Gary Gregory">ServletContextHandler.collectPropertyNames(HashSet, Object) is now typed with generics.</action>
113-
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate ClassLoaderUtil.ClassLoaderUtil().</action>
114113
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate MethodLookupUtils.MethodLookupUtils().</action>
115114
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate KeyManagerUtils.KeyManagerUtils().</action>
116115
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate TypeUtils.TypeUtils().</action>

src/main/java/org/apache/commons/jxpath/ExceptionHandler.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,14 @@
1717

1818
package org.apache.commons.jxpath;
1919

20+
import java.util.function.BiConsumer;
21+
2022
/**
2123
* Exception handler interface. Actually handles Throwables.
2224
*
23-
* @since 1.4
25+
* @since 1.4.0
2426
*/
25-
public interface ExceptionHandler {
26-
27-
/**
28-
* Handle an encountered Throwable.
29-
*
30-
* @param t to handle
31-
* @param ptr specific context
32-
*/
33-
void handle(Throwable t, Pointer ptr);
27+
@FunctionalInterface
28+
public interface ExceptionHandler extends BiConsumer<Throwable, Pointer> {
29+
// empty
3430
}

src/main/java/org/apache/commons/jxpath/JXPathContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ public synchronized void setDecimalFormatSymbols(final String name, final Decima
866866
* Sets the ExceptionHandler used by this context, if any.
867867
*
868868
* @param exceptionHandler to set
869-
* @since 1.4
869+
* @since 1.4.0
870870
*/
871871
public void setExceptionHandler(final ExceptionHandler exceptionHandler) {
872872
throw new UnsupportedOperationException("ExceptionHandler registration is not implemented by " + getClass());

src/main/java/org/apache/commons/jxpath/JXPathIntrospector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private static Object instantiate(final Class sibling, final String className) t
166166
}
167167
}
168168
// Now try the ClassLoaderUtil.
169-
return ClassLoaderUtil.getClass(className).newInstance();
169+
return ClassLoaderUtil.getClass(className, true).newInstance();
170170
}
171171

172172
/**

src/main/java/org/apache/commons/jxpath/functions/package-info.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
1718
/**
1819
* Implementations of Java class-based extension functions.
20+
*
21+
* @see <a href="https://commons.apache.org/proper/commons-jxpath/apidocs/index.html">User's Guide</a>.
1922
*/
20-
2123
package org.apache.commons.jxpath.functions;

src/main/java/org/apache/commons/jxpath/package-info.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
1718
/**
1819
* Public, abstract part of JXPath: interfaces and configuration. If you are a user of JXPath and don't plan to modify its implementation, this is the only
1920
* package you'll need to use. Start with the {@link org.apache.commons.jxpath.JXPathContext} class.
21+
*
22+
* @see <a href="https://commons.apache.org/proper/commons-jxpath/apidocs/index.html">User's Guide</a>.
2023
*/
21-
2224
package org.apache.commons.jxpath;

src/main/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static NodePointerFactory[] getNodePointerFactories() {
159159
*
160160
* @param factory NodePointerFactory to remove
161161
* @return true if this implementation contained the specified element
162-
* @since 1.4.0
162+
* @since 1.4.0.0
163163
*/
164164
public static boolean removeNodePointerFactory(final NodePointerFactory factory) {
165165
synchronized (nodeFactories) {

src/main/java/org/apache/commons/jxpath/ri/axes/package-info.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
1718
/**
1819
* Implementations of EvalContext used for different XPath axes (child::, parent:: etc). In order to evaluate a path, RI creates a chain of EvalContexts, one
1920
* for each step in the path.
21+
*
22+
* @see <a href="https://commons.apache.org/proper/commons-jxpath/apidocs/index.html">User's Guide</a>
2023
*/
21-
2224
package org.apache.commons.jxpath.ri.axes;

src/main/java/org/apache/commons/jxpath/ri/compiler/CoreFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ protected Object functionCount(final EvalContext context) {
290290
*
291291
* @param context evaluation context
292292
* @return Boolean
293-
* @since 1.4
293+
* @since 1.4.0
294294
*/
295295
protected Object functionEndsWith(final EvalContext context) {
296296
assertArgCount(2);

src/main/java/org/apache/commons/jxpath/ri/compiler/package-info.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
1718
/**
1819
* XPath parse tree. TreeCompiler is the class responsible for the construction of a parse tree out of individual elements.
20+
*
21+
* @see <a href="https://commons.apache.org/proper/commons-jxpath/apidocs/index.html">User's Guide</a>.
1922
*/
20-
2123
package org.apache.commons.jxpath.ri.compiler;

0 commit comments

Comments
 (0)