From fd9678833fc2384c7f61cdb0a734a6d0dddd9628 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 31 Oct 2019 13:54:00 +0000 Subject: [PATCH] Use int for maxParts instead of long --- .../codec/multipart/SynchronossPartHttpMessageReader.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/codec/multipart/SynchronossPartHttpMessageReader.java b/spring-web/src/main/java/org/springframework/http/codec/multipart/SynchronossPartHttpMessageReader.java index d613dd6a94..47f40fccf6 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/multipart/SynchronossPartHttpMessageReader.java +++ b/spring-web/src/main/java/org/springframework/http/codec/multipart/SynchronossPartHttpMessageReader.java @@ -88,7 +88,7 @@ public class SynchronossPartHttpMessageReader extends LoggingCodecSupport implem private long maxDiskUsagePerPart = -1; - private long maxParts = -1; + private int maxParts = -1; /** @@ -138,7 +138,7 @@ public class SynchronossPartHttpMessageReader extends LoggingCodecSupport implem * Specify the maximum number of parts allowed in a given multipart request. * @since 5.1.11 */ - public void setMaxParts(long maxParts) { + public void setMaxParts(int maxParts) { this.maxParts = maxParts; } @@ -146,7 +146,7 @@ public class SynchronossPartHttpMessageReader extends LoggingCodecSupport implem * Return the {@link #setMaxParts configured} limit on the number of parts. * @since 5.1.11 */ - public long getMaxParts() { + public int getMaxParts() { return this.maxParts; }