]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Modified Traverser not to implement Iterator
authorPeter Bernard West <pbwest@apache.org>
Tue, 25 May 2004 15:16:30 +0000 (15:16 +0000)
committerPeter Bernard West <pbwest@apache.org>
Tue, 25 May 2004 15:16:30 +0000 (15:16 +0000)
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

index db34967d897e1fd0e3c579bb4d5e69e8816061a4..85a89eec5b25ce90970e72754d81165764fc94d7 100644 (file)
@@ -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 <tt>Iterator</tt> 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();
+//        }
     }
 }