Skip to content

Commit a164dab

Browse files
KmYgJnmhalbritter
authored andcommitted
Fix Integer conversion in getProgress() method
See gh-44718 Signed-off-by: youngjin_dev <[email protected]>
1 parent 109e4c8 commit a164dab

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/TotalProgressListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void finish() {
120120
}
121121

122122
int getProgress() {
123-
return withinPercentageBounds((this.progressByStatus.values().stream().mapToInt(Integer::valueOf).sum())
123+
return withinPercentageBounds((this.progressByStatus.values().stream().mapToInt(Integer::intValue).sum())
124124
/ this.progressByStatus.size());
125125
}
126126

0 commit comments

Comments
 (0)