You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by mo...@apache.org on 2009/11/04 13:12:47 UTC
svn commit: r832732 -
/incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/TCKJavaRuntimeTestcase.java
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;
}
}