Skip to content

Commit e731a0a

Browse files
committed
Use int for maxParts instead of long
1 parent 0f2efdb commit e731a0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public class SynchronossPartHttpMessageReader extends LoggingCodecSupport implem
8888

8989
private long maxDiskUsagePerPart = -1;
9090

91-
private long maxParts = -1;
91+
private int maxParts = -1;
9292

9393

9494
/**
@@ -139,15 +139,15 @@ public long getMaxDiskUsagePerPart() {
139139
* Specify the maximum number of parts allowed in a given multipart request.
140140
* @since 5.1.11
141141
*/
142-
public void setMaxParts(long maxParts) {
142+
public void setMaxParts(int maxParts) {
143143
this.maxParts = maxParts;
144144
}
145145

146146
/**
147147
* Return the {@link #setMaxParts configured} limit on the number of parts.
148148
* @since 5.1.11
149149
*/
150-
public long getMaxParts() {
150+
public int getMaxParts() {
151151
return this.maxParts;
152152
}
153153

0 commit comments

Comments
 (0)