From 49e5f0b17b6744739e3262dee5a40131a4ac06bb Mon Sep 17 00:00:00 2001 From: Shijin K Date: Wed, 30 Oct 2024 13:57:00 +0530 Subject: [PATCH] Changes to make clone methods final for security --- .../differentialentropy/UnweightedDoubleReservoirSample.java | 2 +- .../differentialentropy/WeightedDoubleReservoirSample.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/presto-main/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/UnweightedDoubleReservoirSample.java b/presto-main/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/UnweightedDoubleReservoirSample.java index d9c7ea87dbc9..f8bd4c083798 100644 --- a/presto-main/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/UnweightedDoubleReservoirSample.java +++ b/presto-main/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/UnweightedDoubleReservoirSample.java @@ -121,7 +121,7 @@ public int getTotalPopulationCount() } @Override - public UnweightedDoubleReservoirSample clone() + public final UnweightedDoubleReservoirSample clone() { return new UnweightedDoubleReservoirSample(this); } diff --git a/presto-main/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/WeightedDoubleReservoirSample.java b/presto-main/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/WeightedDoubleReservoirSample.java index 8be48379d0f7..aeda45449408 100644 --- a/presto-main/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/WeightedDoubleReservoirSample.java +++ b/presto-main/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/WeightedDoubleReservoirSample.java @@ -107,7 +107,7 @@ public void mergeWith(WeightedDoubleReservoirSample other) } @Override - public WeightedDoubleReservoirSample clone() + public final WeightedDoubleReservoirSample clone() { return new WeightedDoubleReservoirSample(this); }