tcopeland 02/05/17 07:54:26
Modified: src/java/org/apache/maven/jrcs/diff Revision.java
Log:
Expanded the comment block a bit. This saves a conditional test and a method call
or two.
Revision Changes Path
1.6 +3 -4
jakarta-turbine-maven/src/java/org/apache/maven/jrcs/diff/Revision.java
Index: Revision.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/jrcs/diff/Revision.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Revision.java 3 Mar 2002 19:59:44 -0000 1.5
+++ Revision.java 17 May 2002 14:54:26 -0000 1.6
@@ -68,7 +68,7 @@
* A Revision holds the series of deltas that describe the differences
* between to revisions of a text.
*
- * @version $Id: Revision.java,v 1.5 2002/03/03 19:59:44 juanco Exp $
+ * @version $Id: Revision.java,v 1.6 2002/05/17 14:54:26 tcopeland Exp $
* @author <a href="mailto:[EMAIL PROTECTED]">Juanco Anez</a>
* @see Delta
* @see Diff
@@ -99,11 +99,10 @@
{
throw new IllegalArgumentException("new delta is null");
}
+ /*!!!
if (deltas_.size() > 0)
{
Delta prev = (Delta) deltas_.get(deltas_.size() - 1);
-
- /*!!!
if (prev.original != null && delta.original != null
&& (prev.original.from() > delta.original.from()))
throw new IllegalArgumentException("original.from > new.from");
@@ -111,8 +110,8 @@
if (prev.revised != null && delta.revised != null
&& (prev.revised.from() > delta.revised.from()))
throw new IllegalArgumentException("revised.from > revised.to");
- */
}
+ */
deltas_.add(delta);
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>