You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ju...@apache.org on 2003/05/08 07:22:53 UTC

cvs commit: jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/diff/myers PathNode.java

juanco      2003/05/07 22:22:53

  Modified:    jrcs/src/java/org/apache/commons/jrcs/diff/myers
                        PathNode.java
  Log:
  compress paths to save memory
  
  Revision  Changes    Path
  1.4       +2 -0      jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/diff/myers/PathNode.java
  
  Index: PathNode.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/diff/myers/PathNode.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PathNode.java	6 May 2003 18:07:51 -0000	1.3
  +++ PathNode.java	8 May 2003 05:22:53 -0000	1.4
  @@ -88,6 +88,8 @@
               throw new IllegalArgumentException("node points to a diagonal");
           this.i = i;
           this.j = j;
  +        while (prev != null && (prev.i == i || prev.j == j))
  +            prev = prev.prev;
           this.prev = prev;
       }
   
  
  
  

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