This is an automated email from the ASF dual-hosted git repository. centic pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/poi.git
commit beab88fb0e96e8e2047a563e3a176239082ab6b7 Author: Dominik Stadler <[email protected]> AuthorDate: Sun Jan 18 17:07:34 2026 +0100 Remove obsolete if-condition All branches perform the same action now anyway --- poi/src/main/java/org/apache/poi/ddf/EscherContainerRecord.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/ddf/EscherContainerRecord.java b/poi/src/main/java/org/apache/poi/ddf/EscherContainerRecord.java index a5456159be..804fa0493d 100644 --- a/poi/src/main/java/org/apache/poi/ddf/EscherContainerRecord.java +++ b/poi/src/main/java/org/apache/poi/ddf/EscherContainerRecord.java @@ -102,14 +102,7 @@ public final class EscherContainerRecord extends EscherRecord implements Iterabl while (bytesRemaining > 0 && offset < data.length) { EscherRecord child = recordFactory.createRecord(data, offset); - final int childBytesWritten; - if (child instanceof EscherContainerRecord) { - childBytesWritten = ((EscherContainerRecord)child).fillFields(data, offset, recordFactory, nesting + 1); - } else if (child instanceof UnknownEscherRecord) { - childBytesWritten = ((UnknownEscherRecord)child).fillFields(data, offset, recordFactory, nesting + 1); - } else { - childBytesWritten = child.fillFields(data, offset, recordFactory, nesting + 1); - } + final int childBytesWritten = child.fillFields(data, offset, recordFactory, nesting + 1); bytesWritten += childBytesWritten; offset += childBytesWritten; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
