diff options
author | Simon Pepping <spepping@apache.org> | 2008-06-23 20:20:04 +0000 |
---|---|---|
committer | Simon Pepping <spepping@apache.org> | 2008-06-23 20:20:04 +0000 |
commit | e8d9ad9df0f59c48b00dd191b8bec8f7deb39708 (patch) | |
tree | e7740471f59c4b9e02923e990510a6797ba9d838 | |
parent | 22ab21c5254e06ed8402549c5da8e6c2d9b7639f (diff) | |
download | xmlgraphics-fop-e8d9ad9df0f59c48b00dd191b8bec8f7deb39708.tar.gz xmlgraphics-fop-e8d9ad9df0f59c48b00dd191b8bec8f7deb39708.zip |
Fixing errors indicated by Eclipse
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Interleaved_Page_Line_Breaking@670735 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | prototype/java/src/org/apache/fop/prototype/breaking/ActiveLayouts.java | 8 | ||||
-rw-r--r-- | prototype/java/src/org/apache/fop/prototype/knuth/KnuthElement.java | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/prototype/java/src/org/apache/fop/prototype/breaking/ActiveLayouts.java b/prototype/java/src/org/apache/fop/prototype/breaking/ActiveLayouts.java index adcb4e98b..a319a8e04 100644 --- a/prototype/java/src/org/apache/fop/prototype/breaking/ActiveLayouts.java +++ b/prototype/java/src/org/apache/fop/prototype/breaking/ActiveLayouts.java @@ -67,7 +67,6 @@ class ActiveLayouts<L extends Layout> implements Iterable<L> { private Set<V> nextSet; - @Override public boolean hasNext() { while (keyIter.hasNext()) { nextSet = keyIter.next().getValue(); @@ -78,12 +77,10 @@ class ActiveLayouts<L extends Layout> implements Iterable<L> { return false; } - @Override public Iterator<V> next() { return nextSet.iterator(); } - @Override public void remove() { throw new UnsupportedOperationException("Not implemented"); } @@ -153,18 +150,15 @@ class ActiveLayouts<L extends Layout> implements Iterable<L> { L currentLayout; - @Override public boolean hasNext() { return backingIter.hasNext(); } - @Override public L next() { currentLayout = backingIter.next(); return currentLayout; } - @Override public void remove() { backingIter.remove(); other.removeValue(getKey(currentLayout), currentLayout); @@ -174,7 +168,6 @@ class ActiveLayouts<L extends Layout> implements Iterable<L> { } /** {@inheritDoc} */ - @Override public void remove() { throw new UnsupportedOperationException("Not implemented"); } @@ -201,7 +194,6 @@ class ActiveLayouts<L extends Layout> implements Iterable<L> { } /** {@inheritDoc} */ - @Override public Iterator<L> iterator() { return layouts.iterator(); } diff --git a/prototype/java/src/org/apache/fop/prototype/knuth/KnuthElement.java b/prototype/java/src/org/apache/fop/prototype/knuth/KnuthElement.java index 8136a91e6..346b4d84a 100644 --- a/prototype/java/src/org/apache/fop/prototype/knuth/KnuthElement.java +++ b/prototype/java/src/org/apache/fop/prototype/knuth/KnuthElement.java @@ -57,7 +57,7 @@ public class KnuthElement implements TypographicElement { /** {@inheritDoc} */ @Override public String toString() { - if (content.isEmpty()) { + if (content.equals("")) { return ""; } else { return " \"" + content + "\""; |