Fix problem where views were being incorrectly created

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131302 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-10-29 23:49:18 +00:00
parent 2e53e15a14
commit c0968cfcee
1 changed files with 5 additions and 5 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/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 * The Apache Software License, Version 1.1
@ -66,7 +66,7 @@ import java.util.SortedMap;
* to ensure it can't be altered. * to ensure it can't be altered.
* *
* @since Commons Collections 3.0 * @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 * @author Stephen Colebourne
*/ */
@ -116,17 +116,17 @@ public class UnmodifiableSortedMap extends UnmodifiableMap implements SortedMap
public SortedMap subMap(Object fromKey, Object toKey) { public SortedMap subMap(Object fromKey, Object toKey) {
SortedMap map = getSortedMap().subMap(fromKey, toKey); SortedMap map = getSortedMap().subMap(fromKey, toKey);
return new UnmodifiableSortedMap(getSortedMap()); return new UnmodifiableSortedMap(map);
} }
public SortedMap headMap(Object toKey) { public SortedMap headMap(Object toKey) {
SortedMap map = getSortedMap().headMap(toKey); SortedMap map = getSortedMap().headMap(toKey);
return new UnmodifiableSortedMap(getSortedMap()); return new UnmodifiableSortedMap(map);
} }
public SortedMap tailMap(Object fromKey) { public SortedMap tailMap(Object fromKey) {
SortedMap map = getSortedMap().tailMap(fromKey); SortedMap map = getSortedMap().tailMap(fromKey);
return new UnmodifiableSortedMap(getSortedMap()); return new UnmodifiableSortedMap(map);
} }
} }