You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by dl...@apache.org on 2003/08/24 19:31:12 UTC
cvs commit: jakarta-velocity/src/java/org/apache/velocity/io VelocityWriter.java
dlr 2003/08/24 10:31:12
Modified: src/java/org/apache/velocity/io VelocityWriter.java
Log:
* src/java/org/apache/velocity/io/VelocityWriter.java
min(): Briefer implementation, JavaDoc tweak.
Revision Changes Path
1.8 +5 -5 jakarta-velocity/src/java/org/apache/velocity/io/VelocityWriter.java
Index: VelocityWriter.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/io/VelocityWriter.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -u -r1.7 -r1.8
--- VelocityWriter.java 4 May 2003 17:14:36 -0000 1.7
+++ VelocityWriter.java 24 Aug 2003 17:31:12 -0000 1.8
@@ -243,13 +243,13 @@
}
/**
- * Our own little min method, to avoid loading java.lang.Math if we've run
- * out of file descriptors and we're trying to print a stack trace.
+ * Our own little min method, to avoid loading
+ * <code>java.lang.Math</code> if we've run out of file
+ * descriptors and we're trying to print a stack trace.
*/
private final int min(int a, int b)
{
- if (a < b) return a;
- return b;
+ return (a < b ? a : b);
}
/**
Re: cvs commit: jakarta-velocity/src/java/org/apache/velocity/io VelocityWriter.java
Posted by Claude Brisson <cl...@savoirweb.com>.
Do you really think java.lang.Math still has a chance not to be loaded ?
:-)
CloD
----- Original Message -----
From: <dl...@apache.org>
To: <ja...@apache.org>
Sent: dimanche 24 août 2003 19:31
Subject: cvs commit: jakarta-velocity/src/java/org/apache/velocity/io VelocityWriter.java
> dlr 2003/08/24 10:31:12
>
> Modified: src/java/org/apache/velocity/io VelocityWriter.java
> Log:
> * src/java/org/apache/velocity/io/VelocityWriter.java
> min(): Briefer implementation, JavaDoc tweak.
>
> Revision Changes Path
> 1.8 +5 -5 jakarta-velocity/src/java/org/apache/velocity/io/VelocityWriter.java
>
> Index: VelocityWriter.java
> ===================================================================
> RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/io/VelocityWriter.java,v
> retrieving revision 1.7
> retrieving revision 1.8
> diff -u -u -r1.7 -r1.8
> --- VelocityWriter.java 4 May 2003 17:14:36 -0000 1.7
> +++ VelocityWriter.java 24 Aug 2003 17:31:12 -0000 1.8
> @@ -243,13 +243,13 @@
> }
>
> /**
> - * Our own little min method, to avoid loading java.lang.Math if we've run
> - * out of file descriptors and we're trying to print a stack trace.
> + * Our own little min method, to avoid loading
> + * <code>java.lang.Math</code> if we've run out of file
> + * descriptors and we're trying to print a stack trace.
> */
> private final int min(int a, int b)
> {
> - if (a < b) return a;
> - return b;
> + return (a < b ? a : b);
> }
>
> /**
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
>
>