mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
style: include OCP_OVERLY_CONCRETE_PARAMETER (#5833)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.thealgorithms.maths;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* Class for linear convolution of two discrete signals using the convolution
|
||||
@@ -19,7 +20,7 @@ public final class ConvolutionFFT {
|
||||
* @param x The signal to be padded.
|
||||
* @param newSize The new size of the signal.
|
||||
*/
|
||||
private static void padding(ArrayList<FFT.Complex> x, int newSize) {
|
||||
private static void padding(Collection<FFT.Complex> x, int newSize) {
|
||||
if (x.size() < newSize) {
|
||||
int diff = newSize - x.size();
|
||||
for (int i = 0; i < diff; i++) {
|
||||
|
||||
Reference in New Issue
Block a user