Author: arunpatidar
Date: Fri Aug 5 15:19:25 2016
New Revision: 1755346
URL:
http://svn.apache.org/viewvc?rev=1755346&view=revLog:
Applied patch from jira issue - OFBIZ-7809 - Enforce noninstantiability to UtilXml class. Thanks Chinmay Patidar and Rishi Solanki for your contribution.
Modified:
ofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java
Modified: ofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java?rev=1755346&r1=1755345&r2=1755346&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java (original)
+++ ofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java Fri Aug 5 15:19:25 2016
@@ -83,10 +83,11 @@ import com.thoughtworks.xstream.io.Hiera
* Utilities methods to simplify dealing with JAXP & DOM XML parsing
*
*/
-public class UtilXml {
+public final class UtilXml {
public static final String module = UtilXml.class.getName();
private static final XStream xstream = createXStream();
+ private UtilXml () {}
private static XStream createXStream() {
XStream xstream = new XStream();