svn commit: r958272 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java

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

svn commit: r958272 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java

doogie-3
Author: doogie
Date: Sat Jun 26 19:40:29 2010
New Revision: 958272

URL: http://svn.apache.org/viewvc?rev=958272&view=rev
Log:
Remove use of deprecated ModelIindex.getIndexFieldsIterator().

Modified:
    ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java

Modified: ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java?rev=958272&r1=958271&r2=958272&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java (original)
+++ ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java Sat Jun 26 19:40:29 2010
@@ -745,8 +745,8 @@ public class WebToolsServices {
                             List<String> fieldNameList = FastList.newInstance();
 
                             ModelIndex index = entity.getIndex(r);
-                            for (Iterator<String> fieldIterator = index.getIndexFieldsIterator(); fieldIterator.hasNext();) {
-                                fieldNameList.add(fieldIterator.next());
+                            for (Iterator<ModelIndex.Field> fieldIterator = index.getFieldsIterator(); fieldIterator.hasNext();) {
+                                fieldNameList.add(fieldIterator.next().getFieldName());
                             }
 
                             Map<String, Object> indexMap = FastMap.newInstance();