svn commit: r1097712 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java

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

svn commit: r1097712 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java

jleroux@apache.org
Author: jleroux
Date: Fri Apr 29 07:43:56 2011
New Revision: 1097712

URL: http://svn.apache.org/viewvc?rev=1097712&view=rev
Log:
I did it wrong in r1094600 and just noticed

<<Slight improvement to prevent false error messages when putting spaces in readers names, eg after commas for instance>>



Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java?rev=1097712&r1=1097711&r2=1097712&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java Fri Apr 29 07:43:56 2011
@@ -96,9 +96,10 @@ public class EntityDataLoader {
                 } else {
                     throw new IllegalArgumentException("Reader name list does not contain String(s) or Element(s)");
                 }
+                readerName = readerName.trim();
 
                 // get all of the main resource model stuff, ie specified in the entityengine.xml file
-                EntityDataReaderInfo entityDataReaderInfo = EntityConfigUtil.getEntityDataReaderInfo(readerName.trim());
+                EntityDataReaderInfo entityDataReaderInfo = EntityConfigUtil.getEntityDataReaderInfo(readerName);
 
                 if (entityDataReaderInfo == null) {
                     Debug.logInfo("Could not find entity-data-reader named: " + readerName + ". Creating a new reader with this name. ", module);