From: Peter Bernard West Date: Tue, 25 May 2004 15:16:30 +0000 (+0000) Subject: Modified Traverser not to implement Iterator X-Git-Tag: Defoe_export~147 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c92f79f79126fc40620e702d28c32e1acf02e307;p=xmlgraphics-fop.git Modified Traverser not to implement Iterator git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197622 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/datatypes/FontFamilySet.java b/src/java/org/apache/fop/datatypes/FontFamilySet.java index db34967d8..85a89eec5 100644 --- a/src/java/org/apache/fop/datatypes/FontFamilySet.java +++ b/src/java/org/apache/fop/datatypes/FontFamilySet.java @@ -26,7 +26,7 @@ package org.apache.fop.datatypes; -import java.util.Iterator; +//import java.util.Iterator; import java.util.NoSuchElementException; import org.apache.fop.fo.PropNames; @@ -87,7 +87,7 @@ public class FontFamilySet extends AbstractPropertyValue { /** * An Iterator implementing member class of FontFamilySet. */ - class Traverser implements Iterator { + public class Traverser { /** * The index for the iteration across the fontFamilyNames array. @@ -100,13 +100,13 @@ public class FontFamilySet extends AbstractPropertyValue { return index < fontFamilyNames.length; } - public Object next() { + public String next() { if (hasNext()) return fontFamilyNames[index++]; throw new NoSuchElementException(); } - public void remove() { - throw new UnsupportedOperationException(); - } +// public void remove() { +// throw new UnsupportedOperationException(); +// } } }