mirror of
https://github.com/apache/poi.git
synced 2026-02-27 12:30: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) {
|
||||
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user