From b9209b212a60fad609b646d754bfab776f718d55 Mon Sep 17 00:00:00 2001 From: aherbert Date: Thu, 13 Oct 2022 17:41:22 +0100 Subject: [PATCH] sonarfix: Avoid c-style array declarations --- .../legacy/ml/clustering/ElkanKMeansPlusPlusClusterer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/ElkanKMeansPlusPlusClusterer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/ElkanKMeansPlusPlusClusterer.java index 0ee36836e..6cd367987 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/ElkanKMeansPlusPlusClusterer.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/ElkanKMeansPlusPlusClusterer.java @@ -339,7 +339,7 @@ public class ElkanKMeansPlusPlusClusterer * @param c index of the cluster * @return true if conditions above satisfied false otherwise */ - private static boolean isSkipNext(int partitions[], + private static boolean isSkipNext(int[] partitions, double[] u, double[][] l, double[][] dcc,