svn commit: r1751025 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1751025 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java

Arun Patidar-4
Author: arunpatidar
Date: Sat Jul  2 05:46:56 2016
New Revision: 1751025

URL: http://svn.apache.org/viewvc?rev=1751025&view=rev
Log:
Applied patch from jira issue - OFBIZ-7601 - Enforce noninstantiability to UtilURL class. Thanks Rishi Solanki and  Rohit Koushal for your contribution.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java?rev=1751025&r1=1751024&r2=1751025&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java Sat Jul  2 05:46:56 2016
@@ -28,11 +28,13 @@ import java.util.concurrent.ConcurrentHa
  * URL Utilities - Simple Class for flexibly working with properties files
  *
  */
-public class UtilURL {
+public final class UtilURL {
 
     public static final String module = UtilURL.class.getName();
     private static final Map<String, URL> urlMap = new ConcurrentHashMap<String, URL>();
 
+    private UtilURL() {}
+
     public static <C> URL fromClass(Class<C> contextClass) {
         String resourceName = contextClass.getName();
         int dotIndex = resourceName.lastIndexOf('.');