Commits

la...@81dbac14-341a-0410-aa85-cbcd92e6f43e  committed 614ec34

Util classes should have not a public constructor

  • Participants
  • Parent commits 36e026f

Comments (0)

Files changed (2)

File src/java/com/opensymphony/oscache/util/ClassLoaderUtil.java

  * bite the bullet and add a dependency.</p>
  */
 public class ClassLoaderUtil {
+    
+    private ClassLoaderUtil() {
+    }
+    
     /**
      * Load a class with a given name.
      *

File src/java/com/opensymphony/oscache/util/StringUtil.java

  * @author <a href="&#109;a&#105;&#108;&#116;&#111;:chris&#64;swebtec.&#99;&#111;&#109;">Chris Miller</a>
  */
 public class StringUtil {
+    
+    private StringUtil() {
+    }
 	
     /**
      * Splits a string into substrings based on the supplied delimiter