Merge pull request #44718 from KmYgJn

* pr/44718:
  Fix Integer conversion in getProgress() method

Closes gh-44718
This commit is contained in:
Moritz Halbritter 2025-03-17 08:52:24 +01:00
commit 135fb1a254
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public abstract class TotalProgressListener<E extends ImageProgressUpdateEvent>
} }
int getProgress() { int getProgress() {
return withinPercentageBounds((this.progressByStatus.values().stream().mapToInt(Integer::valueOf).sum()) return withinPercentageBounds((this.progressByStatus.values().stream().mapToInt(Integer::intValue).sum())
/ this.progressByStatus.size()); / this.progressByStatus.size());
} }