diff --git a/src/java/org/apache/commons/collections/decorators/UnmodifiableSortedMap.java b/src/java/org/apache/commons/collections/decorators/UnmodifiableSortedMap.java index 7bc9ff52a..132b9c7ef 100644 --- a/src/java/org/apache/commons/collections/decorators/UnmodifiableSortedMap.java +++ b/src/java/org/apache/commons/collections/decorators/UnmodifiableSortedMap.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/UnmodifiableSortedMap.java,v 1.2 2003/08/31 17:24:46 scolebourne Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/UnmodifiableSortedMap.java,v 1.3 2003/10/29 23:49:18 scolebourne Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -66,7 +66,7 @@ import java.util.SortedMap; * to ensure it can't be altered. * * @since Commons Collections 3.0 - * @version $Revision: 1.2 $ $Date: 2003/08/31 17:24:46 $ + * @version $Revision: 1.3 $ $Date: 2003/10/29 23:49:18 $ * * @author Stephen Colebourne */ @@ -116,17 +116,17 @@ public class UnmodifiableSortedMap extends UnmodifiableMap implements SortedMap public SortedMap subMap(Object fromKey, Object toKey) { SortedMap map = getSortedMap().subMap(fromKey, toKey); - return new UnmodifiableSortedMap(getSortedMap()); + return new UnmodifiableSortedMap(map); } public SortedMap headMap(Object toKey) { SortedMap map = getSortedMap().headMap(toKey); - return new UnmodifiableSortedMap(getSortedMap()); + return new UnmodifiableSortedMap(map); } public SortedMap tailMap(Object fromKey) { SortedMap map = getSortedMap().tailMap(fromKey); - return new UnmodifiableSortedMap(getSortedMap()); + return new UnmodifiableSortedMap(map); } }