commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jua...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/diff/myers PathNode.java
Date Thu, 08 May 2003 05:22:53 GMT
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


Mime
View raw message