mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Remove obsolete if-condition
All branches perform the same action now anyway
This commit is contained in:
parent
66109187d1
commit
beab88fb0e
@ -102,14 +102,7 @@ public final class EscherContainerRecord extends EscherRecord implements Iterabl
|
|||||||
while (bytesRemaining > 0 && offset < data.length) {
|
while (bytesRemaining > 0 && offset < data.length) {
|
||||||
EscherRecord child = recordFactory.createRecord(data, offset);
|
EscherRecord child = recordFactory.createRecord(data, offset);
|
||||||
|
|
||||||
final int childBytesWritten;
|
final int childBytesWritten = child.fillFields(data, offset, recordFactory, nesting + 1);
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
bytesWritten += childBytesWritten;
|
bytesWritten += childBytesWritten;
|
||||||
offset += childBytesWritten;
|
offset += childBytesWritten;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user