From 0390a566a51907c39d3eda7f333df700c8797221 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Wed, 6 Jul 2016 05:40:53 +0000 Subject: [PATCH] bug 59805: make LocaleUtil a static class git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751601 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/util/LocaleUtil.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/util/LocaleUtil.java b/src/java/org/apache/poi/util/LocaleUtil.java index d7b4fcba5..d38d8de2c 100644 --- a/src/java/org/apache/poi/util/LocaleUtil.java +++ b/src/java/org/apache/poi/util/LocaleUtil.java @@ -34,7 +34,11 @@ import java.util.TimeZone; * The settings are saved in a {@link java.lang.ThreadLocal}, * so they only apply to the current thread and can't be set globally. */ -public class LocaleUtil { +public final class LocaleUtil { + private LocaleUtil() { + // no instances of this class + } + /** * Excel doesn't store TimeZone information in the file, so if in doubt, * use UTC to perform calculations