From 26dc664dfbfd075af22a51f063c62d02f16e48d3 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 1 Feb 2022 20:13:32 +0000 Subject: [PATCH] private constructors git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897670 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/poi/ss/formula/functions/NormDist.java | 2 ++ .../main/java/org/apache/poi/ss/formula/functions/NormInv.java | 2 ++ .../java/org/apache/poi/ss/formula/functions/NormSDist.java | 2 ++ .../main/java/org/apache/poi/ss/formula/functions/NormSInv.java | 2 ++ .../apache/poi/ss/formula/functions/NumberValueFunction.java | 2 ++ 5 files changed, 10 insertions(+) diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/NormDist.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/NormDist.java index 1cc80dd0df..48bab66266 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/NormDist.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/NormDist.java @@ -41,6 +41,8 @@ public final class NormDist extends Fixed4ArgFunction implements FreeRefFunction return cumulative ? normalDistribution.cumulativeProbability(x) : normalDistribution.density(x); } + private NormDist() {} + @Override public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2, ValueEval arg3, ValueEval arg4) { diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/NormInv.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/NormInv.java index 25d76bf46d..67b27cd193 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/NormInv.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/NormInv.java @@ -41,6 +41,8 @@ public final class NormInv extends Fixed3ArgFunction implements FreeRefFunction return normalDistribution.inverseCumulativeProbability(probability); } + private NormInv() {} + @Override public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2, ValueEval arg3) { try { diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/NormSDist.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/NormSDist.java index 41395e2309..970e20b5b2 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/NormSDist.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/NormSDist.java @@ -35,6 +35,8 @@ public final class NormSDist extends Fixed1ArgFunction implements FreeRefFunctio public static final NormSDist instance = new NormSDist(); + private NormSDist() {} + @Override public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1) { try { diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/NormSInv.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/NormSInv.java index b9b712a221..0532a52332 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/NormSInv.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/NormSInv.java @@ -35,6 +35,8 @@ public final class NormSInv extends Fixed1ArgFunction implements FreeRefFunction public static final NormSInv instance = new NormSInv(); + private NormSInv() {} + @Override public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1) { try { diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java index 1e713b2f9d..bf87de22f0 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java @@ -37,6 +37,8 @@ public final class NumberValueFunction implements FreeRefFunction { public static final FreeRefFunction instance = new NumberValueFunction(); + private NumberValueFunction() {} + @Override public ValueEval evaluate( ValueEval[] args, OperationEvaluationContext ec ) { -- 2.39.5