You can subscribe to this list here.
2002 |
Jan
(14) |
Feb
|
Mar
|
Apr
(6) |
May
|
Jun
(3) |
Jul
(3) |
Aug
(6) |
Sep
(14) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(1) |
Feb
|
Mar
(7) |
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
(2) |
Sep
(3) |
Oct
|
Nov
(7) |
Dec
(3) |
2004 |
Jan
|
Feb
(3) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(4) |
Dec
|
2005 |
Jan
|
Feb
|
Mar
(11) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(7) |
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(29) |
Dec
(16) |
2007 |
Jan
(11) |
Feb
(6) |
Mar
(12) |
Apr
(2) |
May
|
Jun
(16) |
Jul
(9) |
Aug
(5) |
Sep
|
Oct
(4) |
Nov
(8) |
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
(23) |
Jun
|
Jul
|
Aug
(5) |
Sep
|
Oct
(11) |
Nov
(2) |
Dec
(3) |
2009 |
Jan
|
Feb
(2) |
Mar
(15) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(65) |
Sep
(180) |
Oct
(52) |
Nov
(33) |
Dec
|
2010 |
Jan
(5) |
Feb
(3) |
Mar
(24) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(49) |
Oct
|
Nov
|
Dec
|
From: Rob E. <ro...@us...> - 2010-03-23 18:26:15
|
Update of /cvsroot/trove4j/trove/test/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv27121/test/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING TPrimitiveObjectHashMapTest.java Log Message: Test for bug 2975214 Index: TPrimitiveObjectHashMapTest.java =================================================================== RCS file: /cvsroot/trove4j/trove/test/gnu/trove/map/hash/Attic/TPrimitiveObjectHashMapTest.java,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** TPrimitiveObjectHashMapTest.java 17 Oct 2009 19:54:00 -0000 1.1.2.6 --- TPrimitiveObjectHashMapTest.java 23 Mar 2010 18:26:05 -0000 1.1.2.7 *************** *** 54,57 **** --- 54,67 ---- + public void testBug2975214() { + TIntObjectHashMap<Integer> map = new TIntObjectHashMap<Integer>( 5 ); + for ( int i = 0; i < 9; i++ ) { + System.out.println( "Pass: " + i ); + map.put( i, new Integer( i ) ); + map.remove( i ); + } + } + + public void testConstructors() { int element_count = 20; |
From: Rob E. <ro...@us...> - 2010-03-02 04:09:59
|
Update of /cvsroot/trove4j/trove/templates/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1500/trove/templates/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING _K__V_HashMap.template Object_E_HashMap.template Log Message: Switch toStrings() back to use curly braces rather than square braces. Index: _K__V_HashMap.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/map/hash/Attic/_K__V_HashMap.template,v retrieving revision 1.1.2.15 retrieving revision 1.1.2.16 diff -C2 -d -r1.1.2.15 -r1.1.2.16 *** _K__V_HashMap.template 2 Mar 2010 03:49:59 -0000 1.1.2.15 --- _K__V_HashMap.template 2 Mar 2010 04:09:50 -0000 1.1.2.16 *************** *** 785,789 **** @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEachKey( new T#K#Procedure() { private boolean first = true; --- 785,789 ---- @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEachKey( new T#K#Procedure() { private boolean first = true; *************** *** 801,805 **** } } ); ! buf.append( "]" ); return buf.toString(); } --- 801,805 ---- } } ); ! buf.append( "}" ); return buf.toString(); } *************** *** 1039,1043 **** @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEachValue( new T#V#Procedure() { private boolean first = true; --- 1039,1043 ---- @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEachValue( new T#V#Procedure() { private boolean first = true; *************** *** 1054,1058 **** } } ); ! buf.append( "]" ); return buf.toString(); } --- 1054,1058 ---- } } ); ! buf.append( "}" ); return buf.toString(); } *************** *** 1234,1238 **** @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEachEntry( new T#K##V#Procedure() { private boolean first = true; --- 1234,1238 ---- @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEachEntry( new T#K##V#Procedure() { private boolean first = true; *************** *** 1247,1251 **** } }); ! buf.append( "]" ); return buf.toString(); } --- 1247,1251 ---- } }); ! buf.append( "}" ); return buf.toString(); } Index: Object_E_HashMap.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/map/hash/Attic/Object_E_HashMap.template,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** Object_E_HashMap.template 2 Mar 2010 03:49:59 -0000 1.1.2.7 --- Object_E_HashMap.template 2 Mar 2010 04:09:50 -0000 1.1.2.8 *************** *** 929,933 **** @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEachValue( new T#E#Procedure() { private boolean first = true; --- 929,933 ---- @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEachValue( new T#E#Procedure() { private boolean first = true; *************** *** 944,948 **** } } ); ! buf.append( "]" ); return buf.toString(); } --- 944,948 ---- } } ); ! buf.append( "}" ); return buf.toString(); } |
From: Rob E. <ro...@us...> - 2010-03-02 04:09:59
|
Update of /cvsroot/trove4j/trove/templates/gnu/trove/stack/array In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1500/trove/templates/gnu/trove/stack/array Modified Files: Tag: TROVE_3_WORKING _E_ArrayStack.template Log Message: Switch toStrings() back to use curly braces rather than square braces. Index: _E_ArrayStack.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/stack/array/Attic/_E_ArrayStack.template,v retrieving revision 1.1.2.12 retrieving revision 1.1.2.13 diff -C2 -d -r1.1.2.12 -r1.1.2.13 *** _E_ArrayStack.template 2 Mar 2010 03:49:59 -0000 1.1.2.12 --- _E_ArrayStack.template 2 Mar 2010 04:09:50 -0000 1.1.2.13 *************** *** 234,238 **** */ public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); for ( int i = _list.size() - 1; i > 0; i-- ) { buf.append( _list.get( i ) ); --- 234,238 ---- */ public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); for ( int i = _list.size() - 1; i > 0; i-- ) { buf.append( _list.get( i ) ); *************** *** 242,246 **** buf.append( _list.get( 0 ) ); } ! buf.append( "]" ); return buf.toString(); } --- 242,246 ---- buf.append( _list.get( 0 ) ); } ! buf.append( "}" ); return buf.toString(); } |
From: Rob E. <ro...@us...> - 2010-03-02 04:09:59
|
Update of /cvsroot/trove4j/trove/src/gnu/trove/set/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1500/trove/src/gnu/trove/set/hash Modified Files: Tag: TROVE_3_WORKING THashSet.java Log Message: Switch toStrings() back to use curly braces rather than square braces. Index: THashSet.java =================================================================== RCS file: /cvsroot/trove4j/trove/src/gnu/trove/set/hash/Attic/THashSet.java,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** THashSet.java 2 Mar 2010 03:49:59 -0000 1.1.2.7 --- THashSet.java 2 Mar 2010 04:09:50 -0000 1.1.2.8 *************** *** 347,351 **** public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEach( new TObjectProcedure<E>() { private boolean first = true; --- 347,351 ---- public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEach( new TObjectProcedure<E>() { private boolean first = true; *************** *** 363,367 **** } } ); ! buf.append( "]" ); return buf.toString(); } --- 363,367 ---- } } ); ! buf.append( "}" ); return buf.toString(); } |
From: Rob E. <ro...@us...> - 2010-03-02 04:09:59
|
Update of /cvsroot/trove4j/trove/src/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1500/trove/src/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING THashMap.java Log Message: Switch toStrings() back to use curly braces rather than square braces. Index: THashMap.java =================================================================== RCS file: /cvsroot/trove4j/trove/src/gnu/trove/map/hash/Attic/THashMap.java,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** THashMap.java 2 Mar 2010 03:46:12 -0000 1.1.2.7 --- THashMap.java 2 Mar 2010 04:09:50 -0000 1.1.2.8 *************** *** 207,211 **** public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEachEntry( new TObjectObjectProcedure<K, V>() { private boolean first = true; --- 207,211 ---- public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEachEntry( new TObjectObjectProcedure<K, V>() { private boolean first = true; *************** *** 225,229 **** } } ); ! buf.append( "]" ); return buf.toString(); } --- 225,229 ---- } } ); ! buf.append( "}" ); return buf.toString(); } *************** *** 757,760 **** --- 757,774 ---- return changed; } + + public String toString() { + Iterator<E> i = iterator(); + if ( !i.hasNext() ) return "{}"; + + StringBuilder sb = new StringBuilder(); + sb.append( '{' ); + for (; ; ) { + E e = i.next(); + sb.append( e == this ? "(this Collection)" : e ); + if ( !i.hasNext() ) return sb.append( '}' ).toString(); + sb.append( ", " ); + } + } } |
From: Rob E. <ro...@us...> - 2010-03-02 04:09:59
|
Update of /cvsroot/trove4j/trove/test/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1500/trove/test/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING TPrimitivePrimitiveHashMapTest.java THashMapTest.java Log Message: Switch toStrings() back to use curly braces rather than square braces. Index: TPrimitivePrimitiveHashMapTest.java =================================================================== RCS file: /cvsroot/trove4j/trove/test/gnu/trove/map/hash/Attic/TPrimitivePrimitiveHashMapTest.java,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -C2 -d -r1.1.2.9 -r1.1.2.10 *** TPrimitivePrimitiveHashMapTest.java 17 Oct 2009 19:54:00 -0000 1.1.2.9 --- TPrimitivePrimitiveHashMapTest.java 2 Mar 2010 04:09:50 -0000 1.1.2.10 *************** *** 1984,1988 **** String to_string = m.toString(); ! assertTrue( to_string, to_string.equals( "{11=1,22=2}" ) || to_string.equals( "{22=2,11=1}" ) ); } --- 1984,1989 ---- String to_string = m.toString(); ! assertTrue( to_string, ! to_string.equals( "{11=1, 22=2}" ) || to_string.equals( "{22=2, 11=1}" ) ); } Index: THashMapTest.java =================================================================== RCS file: /cvsroot/trove4j/trove/test/gnu/trove/map/hash/Attic/THashMapTest.java,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** THashMapTest.java 2 Mar 2010 03:46:12 -0000 1.1.2.6 --- THashMapTest.java 2 Mar 2010 04:09:50 -0000 1.1.2.7 *************** *** 1063,1067 **** String to_string = ss_map.toString(); assertTrue( to_string, ! to_string.equals( "[One=1, Two=2]" ) || to_string.equals( "[Two=2, One=1]" ) ); } --- 1063,1067 ---- String to_string = ss_map.toString(); assertTrue( to_string, ! to_string.equals( "{One=1, Two=2}" ) || to_string.equals( "{Two=2, One=1}" ) ); } *************** *** 1074,1078 **** String to_string = map.entrySet().toString(); assertTrue( to_string, ! to_string.equals( "[One=1, Two=2]" ) || to_string.equals( "[Two=2, One=1]" ) ); } --- 1074,1078 ---- String to_string = map.entrySet().toString(); assertTrue( to_string, ! to_string.equals( "{One=1, Two=2}" ) || to_string.equals( "{Two=2, One=1}" ) ); } *************** *** 1084,1088 **** String to_string = map.keySet().toString(); assertTrue( to_string, ! to_string.equals( "[One, Two]" ) || to_string.equals( "[Two, One]" ) ); } --- 1084,1088 ---- String to_string = map.keySet().toString(); assertTrue( to_string, ! to_string.equals( "{One, Two}" ) || to_string.equals( "{Two, One}" ) ); } *************** *** 1094,1098 **** String to_string = map.values().toString(); assertTrue( to_string, ! to_string.equals( "[1, 2]" ) || to_string.equals( "[2, 1]" ) ); } --- 1094,1098 ---- String to_string = map.values().toString(); assertTrue( to_string, ! to_string.equals( "{1, 2}" ) || to_string.equals( "{2, 1}" ) ); } |
From: Rob E. <ro...@us...> - 2010-03-02 04:09:59
|
Update of /cvsroot/trove4j/trove/templates/gnu/trove/list/array In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1500/trove/templates/gnu/trove/list/array Modified Files: Tag: TROVE_3_WORKING _E_ArrayList.template Log Message: Switch toStrings() back to use curly braces rather than square braces. Index: _E_ArrayList.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/list/array/Attic/_E_ArrayList.template,v retrieving revision 1.1.2.21 retrieving revision 1.1.2.22 diff -C2 -d -r1.1.2.21 -r1.1.2.22 *** _E_ArrayList.template 2 Mar 2010 03:49:59 -0000 1.1.2.21 --- _E_ArrayList.template 2 Mar 2010 04:09:50 -0000 1.1.2.22 *************** *** 909,913 **** @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); for ( int i = 0, end = _pos - 1; i < end; i++ ) { buf.append( _data[ i ] ); --- 909,913 ---- @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); for ( int i = 0, end = _pos - 1; i < end; i++ ) { buf.append( _data[ i ] ); *************** *** 917,921 **** buf.append( _data[ _pos - 1 ] ); } ! buf.append( "]" ); return buf.toString(); } --- 917,921 ---- buf.append( _data[ _pos - 1 ] ); } ! buf.append( "}" ); return buf.toString(); } |
From: Rob E. <ro...@us...> - 2010-03-02 04:09:59
|
Update of /cvsroot/trove4j/trove/test/gnu/trove/set/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1500/trove/test/gnu/trove/set/hash Modified Files: Tag: TROVE_3_WORKING THashSetTest.java Log Message: Switch toStrings() back to use curly braces rather than square braces. Index: THashSetTest.java =================================================================== RCS file: /cvsroot/trove4j/trove/test/gnu/trove/set/hash/Attic/THashSetTest.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** THashSetTest.java 4 Sep 2009 12:32:33 -0000 1.1.2.2 --- THashSetTest.java 2 Mar 2010 04:09:50 -0000 1.1.2.3 *************** *** 328,333 **** String to_string = set.toString(); assertTrue( to_string, ! to_string.equals( "{One,Two}" ) || ! to_string.equals( "{Two,One}" ) ); } --- 328,332 ---- String to_string = set.toString(); assertTrue( to_string, ! to_string.equals( "{One, Two}" ) || to_string.equals( "{Two, One}" ) ); } |
From: Rob E. <ro...@us...> - 2010-03-02 03:50:08
|
Update of /cvsroot/trove4j/trove/templates/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30336/trove/templates/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING _K__V_HashMap.template Object_E_HashMap.template Log Message: More toString() clean up Index: _K__V_HashMap.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/map/hash/Attic/_K__V_HashMap.template,v retrieving revision 1.1.2.14 retrieving revision 1.1.2.15 diff -C2 -d -r1.1.2.14 -r1.1.2.15 *** _K__V_HashMap.template 2 Mar 2010 03:18:29 -0000 1.1.2.14 --- _K__V_HashMap.template 2 Mar 2010 03:49:59 -0000 1.1.2.15 *************** *** 785,789 **** @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEachKey( new T#K#Procedure() { private boolean first = true; --- 785,789 ---- @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEachKey( new T#K#Procedure() { private boolean first = true; *************** *** 794,798 **** first = false; } else { ! buf.append( "," ); } --- 794,798 ---- first = false; } else { ! buf.append( ", " ); } *************** *** 801,805 **** } } ); ! buf.append( "}" ); return buf.toString(); } --- 801,805 ---- } } ); ! buf.append( "]" ); return buf.toString(); } *************** *** 1039,1043 **** @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEachValue( new T#V#Procedure() { private boolean first = true; --- 1039,1043 ---- @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEachValue( new T#V#Procedure() { private boolean first = true; *************** *** 1047,1051 **** first = false; } else { ! buf.append( "," ); } --- 1047,1051 ---- first = false; } else { ! buf.append( ", " ); } *************** *** 1054,1058 **** } } ); ! buf.append( "}" ); return buf.toString(); } --- 1054,1058 ---- } } ); ! buf.append( "]" ); return buf.toString(); } *************** *** 1234,1243 **** @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEachEntry( new T#K##V#Procedure() { private boolean first = true; public boolean execute( #k# key, #v# value ) { if ( first ) first = false; ! else buf.append( "," ); buf.append(key); --- 1234,1243 ---- @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEachEntry( new T#K##V#Procedure() { private boolean first = true; public boolean execute( #k# key, #v# value ) { if ( first ) first = false; ! else buf.append( ", " ); buf.append(key); *************** *** 1247,1251 **** } }); ! buf.append( "}" ); return buf.toString(); } --- 1247,1251 ---- } }); ! buf.append( "]" ); return buf.toString(); } Index: Object_E_HashMap.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/map/hash/Attic/Object_E_HashMap.template,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** Object_E_HashMap.template 2 Mar 2010 03:18:29 -0000 1.1.2.6 --- Object_E_HashMap.template 2 Mar 2010 03:49:59 -0000 1.1.2.7 *************** *** 929,933 **** @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEachValue( new T#E#Procedure() { private boolean first = true; --- 929,933 ---- @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEachValue( new T#E#Procedure() { private boolean first = true; *************** *** 937,941 **** first = false; } else { ! buf.append( "," ); } --- 937,941 ---- first = false; } else { ! buf.append( ", " ); } *************** *** 944,948 **** } } ); ! buf.append( "}" ); return buf.toString(); } --- 944,948 ---- } } ); ! buf.append( "]" ); return buf.toString(); } |
From: Rob E. <ro...@us...> - 2010-03-02 03:50:08
|
Update of /cvsroot/trove4j/trove/templates/gnu/trove/stack/array In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30336/trove/templates/gnu/trove/stack/array Modified Files: Tag: TROVE_3_WORKING _E_ArrayStack.template Log Message: More toString() clean up Index: _E_ArrayStack.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/stack/array/Attic/_E_ArrayStack.template,v retrieving revision 1.1.2.11 retrieving revision 1.1.2.12 diff -C2 -d -r1.1.2.11 -r1.1.2.12 *** _E_ArrayStack.template 9 Oct 2009 02:46:07 -0000 1.1.2.11 --- _E_ArrayStack.template 2 Mar 2010 03:49:59 -0000 1.1.2.12 *************** *** 234,238 **** */ public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); for ( int i = _list.size() - 1; i > 0; i-- ) { buf.append( _list.get( i ) ); --- 234,238 ---- */ public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); for ( int i = _list.size() - 1; i > 0; i-- ) { buf.append( _list.get( i ) ); *************** *** 242,246 **** buf.append( _list.get( 0 ) ); } ! buf.append( "}" ); return buf.toString(); } --- 242,246 ---- buf.append( _list.get( 0 ) ); } ! buf.append( "]" ); return buf.toString(); } |
From: Rob E. <ro...@us...> - 2010-03-02 03:50:08
|
Update of /cvsroot/trove4j/trove/templates/gnu/trove/list/array In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30336/trove/templates/gnu/trove/list/array Modified Files: Tag: TROVE_3_WORKING _E_ArrayList.template Log Message: More toString() clean up Index: _E_ArrayList.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/list/array/Attic/_E_ArrayList.template,v retrieving revision 1.1.2.20 retrieving revision 1.1.2.21 diff -C2 -d -r1.1.2.20 -r1.1.2.21 *** _E_ArrayList.template 30 Oct 2009 04:16:05 -0000 1.1.2.20 --- _E_ArrayList.template 2 Mar 2010 03:49:59 -0000 1.1.2.21 *************** *** 909,913 **** @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); for ( int i = 0, end = _pos - 1; i < end; i++ ) { buf.append( _data[ i ] ); --- 909,913 ---- @Override public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); for ( int i = 0, end = _pos - 1; i < end; i++ ) { buf.append( _data[ i ] ); *************** *** 917,921 **** buf.append( _data[ _pos - 1 ] ); } ! buf.append( "}" ); return buf.toString(); } --- 917,921 ---- buf.append( _data[ _pos - 1 ] ); } ! buf.append( "]" ); return buf.toString(); } |
From: Rob E. <ro...@us...> - 2010-03-02 03:50:07
|
Update of /cvsroot/trove4j/trove/src/gnu/trove/set/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30336/trove/src/gnu/trove/set/hash Modified Files: Tag: TROVE_3_WORKING THashSet.java Log Message: More toString() clean up Index: THashSet.java =================================================================== RCS file: /cvsroot/trove4j/trove/src/gnu/trove/set/hash/Attic/THashSet.java,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** THashSet.java 2 Mar 2010 03:18:29 -0000 1.1.2.6 --- THashSet.java 2 Mar 2010 03:49:59 -0000 1.1.2.7 *************** *** 347,351 **** public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEach( new TObjectProcedure<E>() { private boolean first = true; --- 347,351 ---- public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEach( new TObjectProcedure<E>() { private boolean first = true; *************** *** 356,360 **** first = false; } else { ! buf.append( "," ); } --- 356,360 ---- first = false; } else { ! buf.append( ", " ); } *************** *** 363,367 **** } } ); ! buf.append( "}" ); return buf.toString(); } --- 363,367 ---- } } ); ! buf.append( "]" ); return buf.toString(); } |
From: Rob E. <ro...@us...> - 2010-03-02 03:46:21
|
Update of /cvsroot/trove4j/trove/src/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv29738/trove/src/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING THashMap.java Log Message: Clean up toString() on THashMap add test cases for entrySet(), values() and keySet() returned values. See bug #2937867. Index: THashMap.java =================================================================== RCS file: /cvsroot/trove4j/trove/src/gnu/trove/map/hash/Attic/THashMap.java,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** THashMap.java 2 Mar 2010 03:18:29 -0000 1.1.2.6 --- THashMap.java 2 Mar 2010 03:46:12 -0000 1.1.2.7 *************** *** 207,211 **** public String toString() { ! final StringBuilder buf = new StringBuilder( "{" ); forEachEntry( new TObjectObjectProcedure<K, V>() { private boolean first = true; --- 207,211 ---- public String toString() { ! final StringBuilder buf = new StringBuilder( "[" ); forEachEntry( new TObjectObjectProcedure<K, V>() { private boolean first = true; *************** *** 216,220 **** first = false; } else { ! buf.append( "," ); } --- 216,220 ---- first = false; } else { ! buf.append( ", " ); } *************** *** 225,229 **** } } ); ! buf.append( "}" ); return buf.toString(); } --- 225,229 ---- } } ); ! buf.append( "]" ); return buf.toString(); } |
From: Rob E. <ro...@us...> - 2010-03-02 03:46:21
|
Update of /cvsroot/trove4j/trove/test/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv29738/trove/test/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING THashMapTest.java Log Message: Clean up toString() on THashMap add test cases for entrySet(), values() and keySet() returned values. See bug #2937867. Index: THashMapTest.java =================================================================== RCS file: /cvsroot/trove4j/trove/test/gnu/trove/map/hash/Attic/THashMapTest.java,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** THashMapTest.java 2 Mar 2010 00:55:34 -0000 1.1.2.5 --- THashMapTest.java 2 Mar 2010 03:46:12 -0000 1.1.2.6 *************** *** 1063,1071 **** String to_string = ss_map.toString(); assertTrue( to_string, ! to_string.equals( "{One=1,Two=2}" ) || ! to_string.equals( "{Two=2,One=1}" ) ); } /** * Make sure that REMOVED entries are pruned when doing compaction. --- 1063,1102 ---- String to_string = ss_map.toString(); assertTrue( to_string, ! to_string.equals( "[One=1, Two=2]" ) || to_string.equals( "[Two=2, One=1]" ) ); } + public void testEntrySetToString() { + Map<String, String> map = new THashMap<String, String>(); + map.put( "One", "1" ); + map.put( "Two", "2" ); + + String to_string = map.entrySet().toString(); + assertTrue( to_string, + to_string.equals( "[One=1, Two=2]" ) || to_string.equals( "[Two=2, One=1]" ) ); + } + + public void testKeySetToString() { + Map<String, String> map = new THashMap<String, String>(); + map.put( "One", "1" ); + map.put( "Two", "2" ); + + String to_string = map.keySet().toString(); + assertTrue( to_string, + to_string.equals( "[One, Two]" ) || to_string.equals( "[Two, One]" ) ); + } + + public void testValuesToString() { + Map<String, String> map = new THashMap<String, String>(); + map.put( "One", "1" ); + map.put( "Two", "2" ); + + String to_string = map.values().toString(); + assertTrue( to_string, + to_string.equals( "[1, 2]" ) || to_string.equals( "[2, 1]" ) ); + } + + + /** * Make sure that REMOVED entries are pruned when doing compaction. |
From: Rob E. <ro...@us...> - 2010-03-02 03:18:38
|
Update of /cvsroot/trove4j/trove/templates/gnu/trove/set/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv25991/trove/templates/gnu/trove/set/hash Modified Files: Tag: TROVE_3_WORKING _E_HashSet.template Log Message: Back out change from build 3.0.0.12: "Check current capacity before doing a full rehash (bug #2898583)Check current capacity before doing a full rehash (bug #2898583)" The original change created problems mentioned later in the bug. Index: _E_HashSet.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/set/hash/Attic/_E_HashSet.template,v retrieving revision 1.1.2.11 retrieving revision 1.1.2.12 diff -C2 -d -r1.1.2.11 -r1.1.2.12 *** _E_HashSet.template 16 Nov 2009 21:25:13 -0000 1.1.2.11 --- _E_HashSet.template 2 Mar 2010 03:18:29 -0000 1.1.2.12 *************** *** 404,408 **** protected void rehash( int newCapacity ) { int oldCapacity = _set.length; - if ( oldCapacity == newCapacity ) return; #e# oldSet[] = _set; --- 404,407 ---- |
From: Rob E. <ro...@us...> - 2010-03-02 03:18:38
|
Update of /cvsroot/trove4j/trove/src/gnu/trove/set/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv25991/trove/src/gnu/trove/set/hash Modified Files: Tag: TROVE_3_WORKING THashSet.java Log Message: Back out change from build 3.0.0.12: "Check current capacity before doing a full rehash (bug #2898583)Check current capacity before doing a full rehash (bug #2898583)" The original change created problems mentioned later in the bug. Index: THashSet.java =================================================================== RCS file: /cvsroot/trove4j/trove/src/gnu/trove/set/hash/Attic/THashSet.java,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** THashSet.java 16 Nov 2009 21:25:13 -0000 1.1.2.5 --- THashSet.java 2 Mar 2010 03:18:29 -0000 1.1.2.6 *************** *** 164,168 **** protected void rehash( int newCapacity ) { int oldCapacity = _set.length; - if ( oldCapacity == newCapacity ) return; Object oldSet[] = _set; --- 164,167 ---- |
From: Rob E. <ro...@us...> - 2010-03-02 03:18:38
|
Update of /cvsroot/trove4j/trove/templates/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv25991/trove/templates/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING _K__V_HashMap.template _E_ObjectHashMap.template Object_E_HashMap.template Log Message: Back out change from build 3.0.0.12: "Check current capacity before doing a full rehash (bug #2898583)Check current capacity before doing a full rehash (bug #2898583)" The original change created problems mentioned later in the bug. Index: _K__V_HashMap.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/map/hash/Attic/_K__V_HashMap.template,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -C2 -d -r1.1.2.13 -r1.1.2.14 *** _K__V_HashMap.template 16 Nov 2009 21:25:13 -0000 1.1.2.13 --- _K__V_HashMap.template 2 Mar 2010 03:18:29 -0000 1.1.2.14 *************** *** 174,178 **** protected void rehash( int newCapacity ) { int oldCapacity = _set.length; - if ( oldCapacity == newCapacity ) return; #k# oldKeys[] = _set; --- 174,177 ---- Index: _E_ObjectHashMap.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/map/hash/Attic/_E_ObjectHashMap.template,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -C2 -d -r1.1.2.8 -r1.1.2.9 *** _E_ObjectHashMap.template 16 Nov 2009 21:25:13 -0000 1.1.2.8 --- _E_ObjectHashMap.template 2 Mar 2010 03:18:29 -0000 1.1.2.9 *************** *** 150,154 **** protected void rehash( int newCapacity ) { int oldCapacity = _set.length; - if ( oldCapacity == newCapacity ) return; #e# oldKeys[] = _set; --- 150,153 ---- Index: Object_E_HashMap.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/map/hash/Attic/Object_E_HashMap.template,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** Object_E_HashMap.template 16 Nov 2009 21:25:13 -0000 1.1.2.5 --- Object_E_HashMap.template 2 Mar 2010 03:18:29 -0000 1.1.2.6 *************** *** 173,177 **** protected void rehash( int newCapacity ) { int oldCapacity = _set.length; - if ( oldCapacity == newCapacity ) return; //noinspection unchecked --- 173,176 ---- |
From: Rob E. <ro...@us...> - 2010-03-02 03:18:38
|
Update of /cvsroot/trove4j/trove/src/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv25991/trove/src/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING THashMap.java Log Message: Back out change from build 3.0.0.12: "Check current capacity before doing a full rehash (bug #2898583)Check current capacity before doing a full rehash (bug #2898583)" The original change created problems mentioned later in the bug. Index: THashMap.java =================================================================== RCS file: /cvsroot/trove4j/trove/src/gnu/trove/map/hash/Attic/THashMap.java,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** THashMap.java 2 Mar 2010 00:55:34 -0000 1.1.2.5 --- THashMap.java 2 Mar 2010 03:18:29 -0000 1.1.2.6 *************** *** 383,387 **** protected void rehash( int newCapacity ) { int oldCapacity = _set.length; - if ( oldCapacity == newCapacity ) return; Object oldKeys[] = _set; --- 383,386 ---- |
From: Rob E. <ro...@us...> - 2010-03-02 00:55:45
|
Update of /cvsroot/trove4j/trove/test/gnu/trove/impl/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv604/trove/test/gnu/trove/impl/hash Added Files: Tag: TROVE_3_WORKING HashTestKit.java Log Message: Test cases to verify failure described in bug 2898583. --- NEW FILE: HashTestKit.java --- /* * //////////////////////////////////////////////////////////////////////////// * // Copyright (c) 2010, Rob Eden All Rights Reserved. * // * // This library is free software; you can redistribute it and/or * // modify it under the terms of the GNU Lesser General Public * // License as published by the Free Software Foundation; either * // version 2.1 of the License, or (at your option) any later version. * // * // This library is distributed in the hope that it will be useful, * // but WITHOUT ANY WARRANTY; without even the implied warranty of * // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * // GNU General Public License for more details. * // * // You should have received a copy of the GNU Lesser General Public * // License along with this program; if not, write to the Free Software * // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * /////////////////////////////////////////////////////////////////////////////// */ package gnu.trove.impl.hash; import junit.framework.TestCase; /** * Static functions for unit tests */ public class HashTestKit { /** * Confirm that the internal FREE counter matches the values in the slots. */ public static void checkFreeSlotCount( THash hash, Object[] slot_keys, Object free_marker ) { int free_counter = hash._free; int count = 0; for( Object slot_key : slot_keys ) { if ( slot_key == free_marker ) count++; } TestCase.assertEquals( free_counter, count ); } } |
From: Rob E. <ro...@us...> - 2010-03-02 00:55:45
|
Update of /cvsroot/trove4j/trove/src/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv604/trove/src/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING THashMap.java Log Message: Test cases to verify failure described in bug 2898583. Index: THashMap.java =================================================================== RCS file: /cvsroot/trove4j/trove/src/gnu/trove/map/hash/Attic/THashMap.java,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** THashMap.java 16 Nov 2009 21:25:13 -0000 1.1.2.4 --- THashMap.java 2 Mar 2010 00:55:34 -0000 1.1.2.5 *************** *** 388,405 **** V oldVals[] = _values; ! _set = new Object[newCapacity]; Arrays.fill( _set, FREE ); ! _values = (V[]) new Object[newCapacity]; for ( int i = oldCapacity; i-- > 0; ) { ! if ( oldKeys[i] != FREE && oldKeys[i] != REMOVED ) { ! Object o = oldKeys[i]; ! int index = insertionIndex( (K) o ); ! if ( index < 0 ) { ! throwObjectContractViolation( _set[( -index - 1 )], o ); ! } ! _set[index] = o; ! _values[index] = oldVals[i]; ! } } } --- 388,407 ---- V oldVals[] = _values; ! _set = new Object[ newCapacity ]; Arrays.fill( _set, FREE ); ! _values = ( V[] ) new Object[ newCapacity ]; + // Process entries from the old array, skipping free and removed slots. Put the + // values into the appropriate place in the new array. for ( int i = oldCapacity; i-- > 0; ) { ! if ( oldKeys[ i ] == FREE || oldKeys[ i ] == REMOVED ) continue; ! ! Object o = oldKeys[ i ]; ! int index = insertionIndex( ( K ) o ); ! if ( index < 0 ) { ! throwObjectContractViolation( _set[ ( -index - 1 ) ], o ); ! } ! _set[ index ] = o; ! _values[ index ] = oldVals[ i ]; } } |
From: Rob E. <ro...@us...> - 2010-03-02 00:55:43
|
Update of /cvsroot/trove4j/trove/src/gnu/trove/impl/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv604/trove/src/gnu/trove/impl/hash Modified Files: Tag: TROVE_3_WORKING THash.java Log Message: Test cases to verify failure described in bug 2898583. Index: THash.java =================================================================== RCS file: /cvsroot/trove4j/trove/src/gnu/trove/impl/hash/Attic/THash.java,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** THash.java 9 Oct 2009 01:44:34 -0000 1.1.2.3 --- THash.java 2 Mar 2010 00:55:34 -0000 1.1.2.4 *************** *** 174,178 **** if ( desiredCapacity > ( _maxSize - size() ) ) { rehash( PrimeFinder.nextPrime( HashFunctions.fastCeil( ! ( desiredCapacity + size() ) / _loadFactor ) + 1 ) ); computeMaxSize( capacity() ); } --- 174,178 ---- if ( desiredCapacity > ( _maxSize - size() ) ) { rehash( PrimeFinder.nextPrime( HashFunctions.fastCeil( ! ( desiredCapacity + size() ) / _loadFactor ) + 1 ) ); computeMaxSize( capacity() ); } |
From: Rob E. <ro...@us...> - 2010-03-02 00:55:43
|
Update of /cvsroot/trove4j/trove/test/gnu/trove/map/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv604/trove/test/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING THashMapTest.java Log Message: Test cases to verify failure described in bug 2898583. Index: THashMapTest.java =================================================================== RCS file: /cvsroot/trove4j/trove/test/gnu/trove/map/hash/Attic/THashMapTest.java,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** THashMapTest.java 7 Nov 2009 03:36:44 -0000 1.1.2.4 --- THashMapTest.java 2 Mar 2010 00:55:34 -0000 1.1.2.5 *************** *** 22,25 **** --- 22,27 ---- import gnu.trove.function.TObjectFunction; + import gnu.trove.impl.hash.HashTestKit; + import gnu.trove.impl.hash.TObjectHash; import gnu.trove.procedure.TObjectObjectProcedure; import gnu.trove.procedure.TObjectProcedure; *************** *** 1064,1066 **** --- 1066,1133 ---- to_string.equals( "{Two=2,One=1}" ) ); } + + + /** + * Make sure that REMOVED entries are pruned when doing compaction. + */ + public void testRemovedSlotPruning() { + THashMap<String,String> map = new THashMap<String,String>(); + map.put( "ONE", "1" ); + map.put( "TWO", "2" ); + map.put( "THREE", "3" ); + + // Compact to make sure we're at the internal capacity we want to ultimate be at + map.compact(); + + // Make sure there are no REMOVED slots initially + for( Object set_entry : map._set ) { + if ( set_entry == TObjectHash.REMOVED ) fail( "Found a REMOVED entry" ); + } + + map.remove( "TWO" ); + map.put( "FOUR", "4" ); + + // Make sure there is 1 REMOVED slot + int count = 0; + for( Object set_entry : map._set ) { + if ( set_entry == TObjectHash.REMOVED ) count++; + } + assertEquals( 1, count ); + + map.compact(); + + // Make sure there are no REMOVED slots + for( Object set_entry : map._set ) { + if ( set_entry == TObjectHash.REMOVED ) { + fail( "Found a REMOVED entry after compaction" ); + } + } + } + + + /** + * Make sure that REMOVED entries are pruned when doing compaction. + */ + public void testFreeSlotCounterConsistency() { + THashMap<String,String> map = new THashMap<String,String>(); + HashTestKit.checkFreeSlotCount( map, map._set, TObjectHash.FREE ); + + map.put( "ONE", "1" ); + map.put( "TWO", "2" ); + map.put( "THREE", "3" ); + HashTestKit.checkFreeSlotCount( map, map._set, TObjectHash.FREE ); + + // Compact to make sure we're at the internal capacity we want to ultimate be at + map.compact(); + HashTestKit.checkFreeSlotCount( map, map._set, TObjectHash.FREE ); + + + map.remove( "TWO" ); + map.put( "FOUR", "4" ); + HashTestKit.checkFreeSlotCount( map, map._set, TObjectHash.FREE ); + + map.compact(); + HashTestKit.checkFreeSlotCount( map, map._set, TObjectHash.FREE ); + } + } // THashMapTests |
From: Rob E. <ro...@us...> - 2010-03-01 23:39:16
|
Update of /cvsroot/trove4j/trove/src/gnu/trove/impl/hash In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv13113/trove/src/gnu/trove/impl/hash Modified Files: Tag: TROVE_3_WORKING TPrimitiveHash.java Log Message: Make sure initialCapacity is always >= 1. Index: TPrimitiveHash.java =================================================================== RCS file: /cvsroot/trove4j/trove/src/gnu/trove/impl/hash/Attic/TPrimitiveHash.java,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** TPrimitiveHash.java 9 Oct 2009 02:46:07 -0000 1.1.2.5 --- TPrimitiveHash.java 1 Mar 2010 23:39:07 -0000 1.1.2.6 *************** *** 91,94 **** --- 91,95 ---- public TPrimitiveHash( int initialCapacity, float loadFactor ) { super(); + initialCapacity = Math.max( 1, initialCapacity ); _loadFactor = loadFactor; setUp( HashFunctions.fastCeil( initialCapacity / loadFactor ) ); |
From: Rob E. <ro...@us...> - 2010-02-25 15:46:02
|
Update of /cvsroot/trove4j/trove/templates/gnu/trove/list In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv19927/templates/gnu/trove/list Modified Files: Tag: TROVE_3_WORKING _E_List.template Log Message: Correct documentation of toArray(e[],int,int) per bug 2958750 Index: _E_List.template =================================================================== RCS file: /cvsroot/trove4j/trove/templates/gnu/trove/list/Attic/_E_List.template,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** _E_List.template 30 Oct 2009 04:16:05 -0000 1.1.2.6 --- _E_List.template 25 Feb 2010 15:45:51 -0000 1.1.2.7 *************** *** 306,310 **** * * @param dest the array to copy into. ! * @param offset the offset of the first value to copy * @param len the number of values to copy. * @return the array passed in. --- 306,310 ---- * * @param dest the array to copy into. ! * @param offset the offset where the first value should be copied * @param len the number of values to copy. * @return the array passed in. |
From: Rob E. <ro...@us...> - 2010-02-22 01:16:23
|
Update of /cvsroot/trove4j/trove In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20350/trove Modified Files: Tag: TROVE_3_WORKING build.xml Log Message: Change version to 3.0.0a3, copyright to 2001-2010 |