]> source.dussan.org Git - poi.git/commitdiff
try to fix rat check
authorPJ Fanning <fanningpj@apache.org>
Tue, 28 Jun 2022 11:11:50 +0000 (11:11 +0000)
committerPJ Fanning <fanningpj@apache.org>
Tue, 28 Jun 2022 11:11:50 +0000 (11:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902313 13f79535-47bb-0310-9956-ffa450edef68

build.gradle
poi-integration/src/test/java/org/apache/poi/stress/POIXMLDocumentHandler.java

index 132390111d6dab45ec23be4911e836557958b259..b7fa2ac7d3e021c9a163ab04febf7391f10b7833 100644 (file)
@@ -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.*",
index 8f4c89587fddc53af33ce3c9646ec1a7849447ea..88b269b68750818f13a297a36ffa97d5267094f3 100644 (file)
@@ -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();
         }
     }