Mark the min(a,b) method as static.
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 11 Mar 2010 18:32:39 +0000 (18:32 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 11 Mar 2010 18:32:39 +0000 (18:32 +0000)
Inspired by https://issues.apache.org/bugzilla/show_bug.cgi?id=44265

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921973 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/runtime/JspWriterImpl.java

index acdeaac..6cb3a43 100644 (file)
@@ -234,7 +234,7 @@ public class JspWriterImpl extends JspWriter {
      * 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.
      */
-    private int min(int a, int b) {
+    private static int min(int a, int b) {
         if (a < b) return a;
         return b;
     }