Skip to content

Commit 77d6bc2

Browse files
committed
Javadoc: Propagate RuntimeException from XPathFactory.newInstance()
1 parent 6d91bea commit 77d6bc2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/apache/commons/xml/XmlFactories.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ public static XMLInputFactory newXMLInputFactory() {
197197
* </p>
198198
*
199199
* @return A hardened factory.
200-
* @throws IllegalStateException if a required hardening setting cannot be applied to the underlying implementation.
200+
* @throws IllegalStateException Thrown if a required hardening setting cannot be applied to the underlying implementation.
201+
* @throws RuntimeException Thrown if there is a failure in creating an {@link XPathFactory} for the default object model.
201202
*/
202203
public static XPathFactory newXPathFactory() {
203204
return XPathHardener.harden(XPathFactory.newInstance());

0 commit comments

Comments
 (0)