Skip to content

Commit 3eaf259

Browse files
committed
Polishing
1 parent b5b51e7 commit 3eaf259

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spring-web/src/main/java/org/springframework/http/codec/multipart/PartGenerator.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,15 +688,13 @@ public void body(DataBuffer dataBuffer) {
688688
@Override
689689
public void onComplete() {
690690
this.completed = true;
691-
public void partComplete(boolean finalPart) {
692691
State state = PartGenerator.this.state.get();
693692
// writeComplete might have changed our state to IdleFileState
694693
if (state != this) {
695-
state.partComplete(finalPart);
694+
state.onComplete();
696695
}
697696
else {
698697
this.completed = true;
699-
this.finalPart = finalPart;
700698
}
701699
}
702700

@@ -726,7 +724,7 @@ private void writeComplete() {
726724
}
727725
else if (changeState(this, newState)) {
728726
if (this.completed) {
729-
newState.partComplete(this.finalPart);
727+
newState.onComplete();
730728
}
731729
else {
732730
requestToken();

0 commit comments

Comments
 (0)