svn commit: r1675466 - /ofbiz/branches/OFBIZ-6275/specialpurpose/pos/src/org/ofbiz/pos/config/ButtonEventConfig.java

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

svn commit: r1675466 - /ofbiz/branches/OFBIZ-6275/specialpurpose/pos/src/org/ofbiz/pos/config/ButtonEventConfig.java

doogie-3
Author: doogie
Date: Wed Apr 22 19:34:01 2015
New Revision: 1675466

URL: http://svn.apache.org/r1675466
Log:
OFBIZ-6290: Use ResourceLoader.readXmlRootElement, which is a
non-caching version.  This fixes a deprecation warning.

Modified:
    ofbiz/branches/OFBIZ-6275/specialpurpose/pos/src/org/ofbiz/pos/config/ButtonEventConfig.java

Modified: ofbiz/branches/OFBIZ-6275/specialpurpose/pos/src/org/ofbiz/pos/config/ButtonEventConfig.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-6275/specialpurpose/pos/src/org/ofbiz/pos/config/ButtonEventConfig.java?rev=1675466&r1=1675465&r2=1675466&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-6275/specialpurpose/pos/src/org/ofbiz/pos/config/ButtonEventConfig.java (original)
+++ ofbiz/branches/OFBIZ-6275/specialpurpose/pos/src/org/ofbiz/pos/config/ButtonEventConfig.java Wed Apr 22 19:34:01 2015
@@ -52,7 +52,7 @@ public class ButtonEventConfig implement
     protected boolean disableLock = false;
 
     public static void loadButtonConfig() throws GenericConfigException {
-        Element root = ResourceLoader.getXmlRootElement(ButtonEventConfig.BUTTON_EVENT_CONFIG);
+        Element root = ResourceLoader.readXmlRootElement(ButtonEventConfig.BUTTON_EVENT_CONFIG);
         List<?> buttonEvents = UtilXml.childElementList(root, "event");
         if (!UtilValidate.isEmpty(buttonEvents)) {
             Iterator<?> i = buttonEvents.iterator();