mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: enable ParameterName in CheckStyle. (#5196)
* Enabled: ParameterName in CheckStyle. * Refactored to fix bug caused by selfAssignment of variables in VectorCrossproduct class
This commit is contained in:
committed by
GitHub
parent
2568b96784
commit
c42b1c940c
@@ -19,8 +19,8 @@ public class GenericHashMapUsingArray<K, V> {
|
||||
// 75, then adding 76th item it will double the size, copy all elements
|
||||
// & then add 76th item.
|
||||
|
||||
private void initBuckets(int N) {
|
||||
buckets = new LinkedList[N];
|
||||
private void initBuckets(int n) {
|
||||
buckets = new LinkedList[n];
|
||||
for (int i = 0; i < buckets.length; i++) {
|
||||
buckets[i] = new LinkedList<>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user