Skip to content

Commit

Permalink
Changes to make clone methods final for security
Browse files Browse the repository at this point in the history
  • Loading branch information
bibith4 committed Nov 4, 2024
1 parent d3051d6 commit 49e5f0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public int getTotalPopulationCount()
}

@Override
public UnweightedDoubleReservoirSample clone()
public final UnweightedDoubleReservoirSample clone()
{
return new UnweightedDoubleReservoirSample(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void mergeWith(WeightedDoubleReservoirSample other)
}

@Override
public WeightedDoubleReservoirSample clone()
public final WeightedDoubleReservoirSample clone()
{
return new WeightedDoubleReservoirSample(this);
}
Expand Down

0 comments on commit 49e5f0b

Please sign in to comment.