dispose cursor finally

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sayi 2021-03-20 16:58:11 +00:00
parent 0efa53456a
commit 9618056f1d
1 changed files with 3 additions and 5 deletions

View File

@ -28,7 +28,6 @@ import org.apache.xmlbeans.XmlObject;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnRef;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRow;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtBlock;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl;
@ -269,10 +268,9 @@ public abstract class XWPFAbstractFootnoteEndnote implements Iterable<XWPFParag
private boolean isCursorInFtn(XmlCursor cursor) {
XmlCursor verify = cursor.newCursor();
verify.toParent();
if (verify.getObject() == this.ctFtnEdn) {
return true;
}
return false;
boolean result = (verify.getObject() == this.ctFtnEdn);
verify.dispose();
return result;
}
/**