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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]