Fix Integer conversion in getProgress() method

See gh-44718

Signed-off-by: youngjin_dev <qazkyj0310@gmail.com>
This commit is contained in:
youngjin_dev
2025-03-15 00:01:42 +09:00
committed by Moritz Halbritter
parent 109e4c8572
commit a164dab25d

View File

@@ -120,7 +120,7 @@ public abstract class TotalProgressListener<E extends ImageProgressUpdateEvent>
}
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());
}