commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/decorators UnmodifiableSortedMap.java
Date Wed, 29 Oct 2003 23:49:18 GMT
scolebourne    2003/10/29 15:49:18

  Modified:    collections/src/java/org/apache/commons/collections/decorators
                        UnmodifiableSortedMap.java
  Log:
  Fix problem where views were being incorrectly created
  
  Revision  Changes    Path
  1.3       +5 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/UnmodifiableSortedMap.java
  
  Index: UnmodifiableSortedMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/UnmodifiableSortedMap.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- UnmodifiableSortedMap.java	31 Aug 2003 17:24:46 -0000	1.2
  +++ UnmodifiableSortedMap.java	29 Oct 2003 23:49:18 -0000	1.3
  @@ -116,17 +116,17 @@
   
       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);
       }
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message