/[classpath]/classpath/java/util/Collections.java
ViewVC logotype

Diff of /classpath/java/util/Collections.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28 by mkoch, Sat Apr 17 19:23:19 2004 UTC revision 1.29 by mark, Sun Sep 19 22:02:35 2004 UTC
# Line 1110  public class Collections Line 1110  public class Collections
1110    public static void rotate(List list, int distance)    public static void rotate(List list, int distance)
1111    {    {
1112      int size = list.size();      int size = list.size();
1113        if (size == 0)
1114          return;
1115      distance %= size;      distance %= size;
1116      if (distance == 0)      if (distance == 0)
1117        return;        return;

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26