aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-06-28 11:11:50 +0000
committerPJ Fanning <fanningpj@apache.org>2022-06-28 11:11:50 +0000
commitf212e7c14fc66573a44a85bfe45a8fb75b805635 (patch)
tree286669f73bfcfcb939bc5e0f4a66af8464be086d
parent4b1fc4f153c121960d2f8c1915a236fc95e43d8c (diff)
downloadpoi-f212e7c14fc66573a44a85bfe45a8fb75b805635.tar.gz
poi-f212e7c14fc66573a44a85bfe45a8fb75b805635.zip
try to fix rat check
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902313 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--build.gradle3
-rw-r--r--poi-integration/src/test/java/org/apache/poi/stress/POIXMLDocumentHandler.java5
2 files changed, 2 insertions, 6 deletions
diff --git a/build.gradle b/build.gradle
index 132390111d..b7fa2ac7d3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -647,8 +647,7 @@ rat {
"poi/src/main/resources/org/apache/poi/sl/draw/geom/presetShapeDefinitions.xml",
"poi-ooxml/src/main/resources/org/apache/poi/xslf/usermodel/notesMaster.xml",
"poi-ooxml/src/main/resources/org/apache/poi/xssf/usermodel/presetTableStyles.xml",
- "poi-ooxml-full/src/main/xmlschema/org/apache/poi/schemas/XAdES*.xsd",
- "poi-ooxml-full/src/main/xmlschema/org/apache/poi/schemas/xmldsig-core-schema.xsd",
+ "poi-ooxml-full/src/main/xmlschema/org/apache/poi/schemas/*.xsd",
"poi-ooxml-full/src/main/xmlschema/org/apache/poi/xdgf/visio.xsd",
"osgi/README.md",
"src/resources/ooxml-lite-report.*",
diff --git a/poi-integration/src/test/java/org/apache/poi/stress/POIXMLDocumentHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/POIXMLDocumentHandler.java
index 8f4c89587f..88b269b687 100644
--- a/poi-integration/src/test/java/org/apache/poi/stress/POIXMLDocumentHandler.java
+++ b/poi-integration/src/test/java/org/apache/poi/stress/POIXMLDocumentHandler.java
@@ -57,11 +57,8 @@ public final class POIXMLDocumentHandler {
* @param base the entry point
*/
protected static void cursorRecursive(XmlObject base) {
- XmlCursor cur = base.newCursor();
- try {
+ try (XmlCursor cur = base.newCursor()) {
cursorRecursive(cur);
- } finally {
- cur.dispose();
}
}