Skip to content

Commit 997e39d

Browse files
committed
Rename PdfDocument#isSuccessClosing to closed.
1 parent 97ece58 commit 997e39d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfDocument.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public class PdfDocument implements IEventDispatcher {
109109

110110
protected boolean isClosing = false;
111111

112-
protected boolean isSuccessClosing = false;
112+
protected boolean closed = false;
113113

114114
/**
115115
* flag determines whether to write unused objects to result document
@@ -751,11 +751,11 @@ public void close() {
751751
} catch (IOException e) {
752752
throw new PdfException(PdfException.CannotCloseDocument, e, this);
753753
}
754-
isSuccessClosing = true;
754+
closed = true;
755755
}
756756

757-
public boolean isSuccessClosing() {
758-
return isSuccessClosing;
757+
public boolean isClosed() {
758+
return closed;
759759
}
760760

761761
public boolean isTagged() {
@@ -1253,7 +1253,7 @@ protected void flatFields() {
12531253
* @throws PdfException
12541254
*/
12551255
protected void checkClosingStatus(){
1256-
if(isSuccessClosing){
1256+
if(closed){
12571257
throw new PdfException(PdfException.DocumentClosedImpossibleExecuteAction);
12581258
}
12591259
}

layout/src/main/java/com/itextpdf/layout/Document.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public PageSize rotatePage(PageSize pageSize) {
156156
* @throws PdfException
157157
*/
158158
protected void checkClosingStatus(){
159-
if(getPdfDocument().isSuccessClosing()){
159+
if(getPdfDocument().isClosed()){
160160
throw new PdfException(PdfException.DocumentClosedImpossibleExecuteAction);
161161
}
162162
}

0 commit comments

Comments
 (0)