Fix Integer conversion in getProgress() method
See gh-44718 Signed-off-by: youngjin_dev <qazkyj0310@gmail.com>
This commit is contained in:
committed by
Moritz Halbritter
parent
109e4c8572
commit
a164dab25d
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user