From c92f79f79126fc40620e702d28c32e1acf02e307 Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Tue, 25 May 2004 15:16:30 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/datatypes/FontFamilySet.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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(); +// } } } -- 2.39.5