Fix bug in iterator method from coverage testing

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131438 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-12-14 12:59:38 +00:00
parent 47f07189d4
commit f3eec92e78
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bidimap/AbstractDualBidiMap.java,v 1.4 2003/12/05 20:23:58 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bidimap/AbstractDualBidiMap.java,v 1.5 2003/12/14 12:59:38 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -76,7 +76,7 @@ import org.apache.commons.collections.keyvalue.AbstractMapEntryDecorator;
* <code>createMap</code> method. * <code>createMap</code> method.
* *
* @since Commons Collections 3.0 * @since Commons Collections 3.0
* @version $Id: AbstractDualBidiMap.java,v 1.4 2003/12/05 20:23:58 scolebourne Exp $ * @version $Id: AbstractDualBidiMap.java,v 1.5 2003/12/14 12:59:38 scolebourne Exp $
* *
* @author Matthew Hawthorne * @author Matthew Hawthorne
* @author Stephen Colebourne * @author Stephen Colebourne
@ -616,7 +616,7 @@ public abstract class AbstractDualBidiMap implements BidiMap {
} }
public String toString() { public String toString() {
if (last == null) { if (last != null) {
return "MapIterator[" + getKey() + "=" + getValue() + "]"; return "MapIterator[" + getKey() + "=" + getValue() + "]";
} else { } else {
return "MapIterator[]"; return "MapIterator[]";