This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new a1093281a4 Fixed: Reducing scope of variables in org.apache.ofbiz.base
package (OFBIZ-10478)
a1093281a4 is described below
commit a1093281a48ba42e7e48438db9eb6deac89e7627
Author: Jacques Le Roux <[email protected]>
AuthorDate: Fri Sep 30 10:09:29 2022 +0200
Fixed: Reducing scope of variables in org.apache.ofbiz.base package
(OFBIZ-10478)
Reverts several public to private changes that should not have been
runtime exception: java.lang.NoSuchMethodException
---
.../main/java/org/apache/ofbiz/base/util/string/UelFunctions.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java
b/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java
index c95e6adb1a..5f53df385b 100644
---
a/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java
+++
b/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java
@@ -197,7 +197,7 @@ import org.xml.sax.SAXException;
public class UelFunctions {
protected static final Functions FUNCTION_MAPPER = new Functions();
- private static final String MODULE = UelFunctions.class.getName();
+ public static final String MODULE = UelFunctions.class.getName();
/**
* Returns a <code>FunctionMapper</code> instance.
@@ -415,7 +415,7 @@ public class UelFunctions {
return false;
}
- private static String toHtmlString(Node node, String encoding, boolean
indent, int indentAmount) {
+ public static String toHtmlString(Node node, String encoding, boolean
indent, int indentAmount) {
try {
StringBuilder sb = new StringBuilder();
sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
@@ -447,7 +447,7 @@ public class UelFunctions {
return null;
}
- private static String toXmlString(Node node, String encoding, boolean
omitXmlDeclaration, boolean indent, int indentAmount) {
+ public static String toXmlString(Node node, String encoding, boolean
omitXmlDeclaration, boolean indent, int indentAmount) {
try (ByteArrayOutputStream os = new ByteArrayOutputStream();) {
UtilXml.writeXmlDocument(node, os, encoding, omitXmlDeclaration,
indent, indentAmount);
return os.toString();