svn commit: r1751335 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangUtil.java

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

svn commit: r1751335 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangUtil.java

Arun Patidar-4
Author: arunpatidar
Date: Mon Jul  4 16:31:09 2016
New Revision: 1751335

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

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangUtil.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangUtil.java?rev=1751335&r1=1751334&r2=1751335&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangUtil.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangUtil.java Mon Jul  4 16:31:09 2016
@@ -59,7 +59,7 @@ public final class MiniLangUtil {
 
     public static final String module = MiniLangUtil.class.getName();
 
-    public static final Set<String> SCRIPT_PREFIXES;
+    private static final Set<String> SCRIPT_PREFIXES;
 
     static {
         Set<String> scriptPrefixes = new HashSet<String>();
@@ -69,6 +69,8 @@ public final class MiniLangUtil {
         SCRIPT_PREFIXES = Collections.unmodifiableSet(scriptPrefixes);
     }
 
+    private MiniLangUtil() {}
+
     /**
      * Returns <code>true</code> if <code>str</code> contains a script.
      * @param str The string to test
@@ -320,5 +322,4 @@ public final class MiniLangUtil {
 
     public static class PlainString {}
 
-    private MiniLangUtil() {}
 }