]> source.dussan.org Git - poi.git/commitdiff
bug 59805: make LocaleUtil a static class
authorJaven O'Neal <onealj@apache.org>
Wed, 6 Jul 2016 05:40:53 +0000 (05:40 +0000)
committerJaven O'Neal <onealj@apache.org>
Wed, 6 Jul 2016 05:40:53 +0000 (05:40 +0000)
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

index d7b4fcba59834218369b17f7ae4d3e825886c0cb..d38d8de2c9ae5f83fe03b5ba0e33c03eb205723a 100644 (file)
@@ -34,7 +34,11 @@ import java.util.TimeZone;
  * The settings are saved in a {@link java.lang.ThreadLocal},\r
  * so they only apply to the current thread and can't be set globally.\r
  */\r
-public class LocaleUtil {\r
+public final class LocaleUtil {\r
+    private LocaleUtil() {\r
+        // no instances of this class\r
+    }\r
+    \r
     /**\r
      * Excel doesn't store TimeZone information in the file, so if in doubt,\r
      *  use UTC to perform calculations\r