incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r832732 - /incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/TCKJavaRuntimeTestcase.java
Date Wed, 04 Nov 2009 13:12:47 GMT
Author: monteith
Date: Wed Nov  4 13:12:46 2009
New Revision: 832732

URL: http://svn.apache.org/viewvc?rev=832732&view=rev
Log:
Fixup Java 5.0 issue in source that should be 1.4 in TCK.

Modified:
    incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/TCKJavaRuntimeTestcase.java

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/TCKJavaRuntimeTestcase.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/TCKJavaRuntimeTestcase.java?rev=832732&r1=832731&r2=832732&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/TCKJavaRuntimeTestcase.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/TCKJavaRuntimeTestcase.java
Wed Nov  4 13:12:46 2009
@@ -57,16 +57,13 @@
 			throws CorruptDataException {
 				JavaField foundField = null;
 				
-				for(JavaField nextField : javaClass.getDeclaredFields()) {
+                Iterator fields = javaClass.getDeclaredFields().iterator();
+
+                while (fields.hasNext()) {
+                    JavaField nextField = (JavaField) fields.next();
 										
-					if (nextField instanceof CorruptData) {
-						continue;
-					}
-					
-					JavaField field = (JavaField) nextField;
-					
-					if (field.getName().equals(fieldName)) {
-						foundField = field;
+					if (nextField.getName().equals(fieldName)) {
+						foundField = nextField;
 						break;
 					}
 				}



Mime
View raw message