mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
[cleanup] erefactor/EclipseJdt - Convert 'for' loops to enhanced
EclipseJdt cleanup 'ConvertForLoopToEnhanced' applied by erefactor. For EclipseJdt see https://www.eclipse.org/eclipse/news/4.18/jdt.php For erefactor see https://github.com/cal101/erefactor
This commit is contained in:
parent
65d60a79fe
commit
1c7284661c
@ -753,8 +753,8 @@ public class Money implements Serializable, Comparable<Money> {
|
||||
|
||||
long total = 0;
|
||||
|
||||
for (int i = 0; i < ratios.length; i++) {
|
||||
total += ratios[i];
|
||||
for (long element : ratios) {
|
||||
total += element;
|
||||
}
|
||||
|
||||
long remainder = cent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user