[kaffe] CVS kaffe (dalibor): Resynced with GNU Classpath: Collections.rotate for empty lists

Kaffe CVS cvs-commits at kaffe.org
Tue Sep 21 00:37:20 PDT 2004


PatchSet 5191 
Date: 2004/09/21 07:33:07
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: Collections.rotate for empty lists

2004-09-20  Dalibor Topic  <robilad at kaffe.org>

        * libraries/javalib/java/util/Collections.java:
        Resynced with GNU Classpath.

        2004-09-19  Mark Wielaard  <mark at klomp.org>

        * java/util/Collections.java (rotate): Just return when list is empty.

Members: 
	ChangeLog:1.2746->1.2747 
	libraries/javalib/java/util/Collections.java:1.12->1.13 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2746 kaffe/ChangeLog:1.2747
--- kaffe/ChangeLog:1.2746	Mon Sep 20 23:18:34 2004
+++ kaffe/ChangeLog	Tue Sep 21 07:33:07 2004
@@ -1,5 +1,14 @@
 2004-09-20  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/javalib/java/util/Collections.java:
+	Resynced with GNU Classpath.
+
+	2004-09-19  Mark Wielaard  <mark at klomp.org>
+
+        * java/util/Collections.java (rotate): Just return when list is empty.
+
+2004-09-20  Dalibor Topic  <robilad at kaffe.org>
+
 	* developers/autogen.sh:
 	Updated to automake 1.9.2 and libtool 1.5.10.
 
Index: kaffe/libraries/javalib/java/util/Collections.java
diff -u kaffe/libraries/javalib/java/util/Collections.java:1.12 kaffe/libraries/javalib/java/util/Collections.java:1.13
--- kaffe/libraries/javalib/java/util/Collections.java:1.12	Thu Apr 22 11:40:44 2004
+++ kaffe/libraries/javalib/java/util/Collections.java	Tue Sep 21 07:33:09 2004
@@ -1110,6 +1110,8 @@
   public static void rotate(List list, int distance)
   {
     int size = list.size();
+    if (size == 0)
+      return;
     distance %= size;
     if (distance == 0)
       return;




More information about the kaffe mailing list