Merge pull request #1480 from cal101/jdt-ConvertForLoopToEnhancedCleanUp

[cleanup] erefactor/EclipseJdt - Convert 'for' loops to enhanced
This commit is contained in:
Golden Looly 2021-03-16 13:11:47 +08:00 committed by GitHub
commit bfcd96307f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -753,8 +753,8 @@ public class Money implements Serializable, Comparable<Money> {
long total = 0; long total = 0;
for (int i = 0; i < ratios.length; i++) { for (long element : ratios) {
total += ratios[i]; total += element;
} }
long remainder = cent; long remainder = cent;