Made sampleStats field private and changed getUpperBounds to return a fresh copy in EmpiricalDistributionImpl. BZ #36491 Reported by FindBugs