mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: include OCP_OVERLY_CONCRETE_PARAMETER (#5833)
This commit is contained in:
@@ -2,6 +2,7 @@ package com.thealgorithms.maths;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.lang3.tuple.MutablePair;
|
||||
|
||||
/**
|
||||
@@ -64,7 +65,7 @@ public class NthUglyNumber {
|
||||
}
|
||||
}
|
||||
|
||||
private long computeCandidate(final MutablePair<Integer, Integer> entry) {
|
||||
private long computeCandidate(final Map.Entry<Integer, Integer> entry) {
|
||||
return entry.getKey() * uglyNumbers.get(entry.getValue());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user