svn commit: r652902 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java

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

svn commit: r652902 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java

lektran
Author: lektran
Date: Fri May  2 13:41:00 2008
New Revision: 652902

URL: http://svn.apache.org/viewvc?rev=652902&view=rev
Log:
Small change so that the log shows the orginal entity String rather than an empty String

Modified:
    ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java

Modified: ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java?rev=652902&r1=652901&r2=652902&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java (original)
+++ ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java Fri May  2 13:41:00 2008
@@ -125,16 +125,16 @@
                 continue;
             }
             // attempt to convert relation names to entity names
-            entityName = aif.getEntityModelReader().validateEntityName(entityName);
-            if (entityName == null) {
+            String validEntityName = aif.getEntityModelReader().validateEntityName(entityName);
+            if (validEntityName == null) {
                 Debug.logWarning("Entity [" + entityName + "] reference in service [" + this.modelService.name + "] does not exist!", module);
                 continue;
             }
             
             // the forward reference
-            this.entitiesUsedByThisService.add(aif.getEntityArtifactInfo(entityName));
+            this.entitiesUsedByThisService.add(aif.getEntityArtifactInfo(validEntityName));
             // the reverse reference
-            UtilMisc.addToSortedSetInMap(this, aif.allServiceInfosReferringToEntityName, entityName);
+            UtilMisc.addToSortedSetInMap(this, aif.allServiceInfosReferringToEntityName, validEntityName);
         }
     }