tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r899634 - in /tomcat/trunk: java/javax/el/MethodExpression.java java/org/apache/el/MethodExpressionImpl.java test/org/apache/el/TestMethodExpressionImpl.java
Date Fri, 15 Jan 2010 14:10:11 GMT
Author: markt
Date: Fri Jan 15 14:10:11 2010
New Revision: 899634

URL: http://svn.apache.org/viewvc?rev=899634&view=rev
Log:
The spec has a spelling mistake. Align with the spec until it is fixed.

Modified:
    tomcat/trunk/java/javax/el/MethodExpression.java
    tomcat/trunk/java/org/apache/el/MethodExpressionImpl.java
    tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java

Modified: tomcat/trunk/java/javax/el/MethodExpression.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/el/MethodExpression.java?rev=899634&r1=899633&r2=899634&view=diff
==============================================================================
--- tomcat/trunk/java/javax/el/MethodExpression.java (original)
+++ tomcat/trunk/java/javax/el/MethodExpression.java Fri Jan 15 14:10:11 2010
@@ -30,8 +30,12 @@
     
     /**
      * @since EL 2.2
+     * 
+     * Note: The spelling mistake is deliberate.
+     * isParmetersProvided()  - Specification definition
+     * isParametersProvided() - Corrected spelling
      */
-    public boolean isParametersProvided() {
+    public boolean isParmetersProvided() {
         // Expected to be over-ridden by implementation
         return false;
     }

Modified: tomcat/trunk/java/org/apache/el/MethodExpressionImpl.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/MethodExpressionImpl.java?rev=899634&r1=899633&r2=899634&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/MethodExpressionImpl.java (original)
+++ tomcat/trunk/java/org/apache/el/MethodExpressionImpl.java Fri Jan 15 14:10:11 2010
@@ -320,9 +320,12 @@
 
     /**
      * @since EL 2.2
+     * Note: The spelling mistake is deliberate.
+     * isParmetersProvided()  - Specification definition
+     * isParametersProvided() - Corrected spelling
      */
     @Override
-    public boolean isParametersProvided() {
+    public boolean isParmetersProvided() {
         return this.getNode().isParametersProvided();
     }
     

Modified: tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java?rev=899634&r1=899633&r2=899634&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java (original)
+++ tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java Fri Jan 15 14:10:11 2010
@@ -45,9 +45,9 @@
                 new Class<?>[] { String.class });
 
         String result1 = (String) me1.invoke(context, null);
-        assertFalse(me1.isParametersProvided());
+        assertFalse(me1.isParmetersProvided());
         String result2 = (String) me2.invoke(context, new Object[] { "JUnit2" });
-        assertTrue(me2.isParametersProvided());
+        assertTrue(me2.isParmetersProvided());
         
         assertNotNull(result1);
         assertNotNull(result2);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message