Skip to content

Commit

Permalink
Fix #117 - remove the deprecated, mis-spelt method isParmetersProvided()
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed May 26, 2021
1 parent 9f8649c commit 2a2fa59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 2 additions & 12 deletions api/src/main/java/jakarta/el/MethodExpression.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019 Oracle and/or its affiliates and others.
* Copyright (c) 1997, 2021 Oracle and/or its affiliates and others.
* All rights reserved.
* Copyright 2004 The Apache Software Foundation
*
Expand Down Expand Up @@ -78,7 +78,7 @@ public abstract class MethodExpression extends Expression {
* If not a String literal, evaluates the expression relative to the provided context, invokes the method that was found
* using the supplied parameters, and returns the result of the method invocation.
*
* Any parameters passed to this method is ignored if isLiteralText() or isParmetersProvided() is true.
* Any parameters passed to this method is ignored if isLiteralText() or isParametersProvided() is true.
*
* @param context The context of this evaluation.
* @param params The parameters to pass to the method, or <code>null</code> if no parameters.
Expand Down Expand Up @@ -110,14 +110,4 @@ public abstract class MethodExpression extends Expression {
public boolean isParametersProvided() {
return false;
}

/**
* Use isParametersProvided instead.
*
* @return <code>true</code> if the MethodExpression was created with parameters, <code>false</code> otherwise.
*/
@Deprecated
public boolean isParmetersProvided() {
return isParametersProvided();
}
}
4 changes: 4 additions & 0 deletions spec/src/main/asciidoc/ELSpec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2925,6 +2925,10 @@ This appendix is non-normative.

=== Changes between 5.0 and 4.0

* https://github.com/eclipse-ee4j/el-ri/issues/117[#117]
Remove the deprecated, mis-spelt method
`MethodExpression#isParmetersProvided()` from the API

* https://github.com/eclipse-ee4j/el-ri/issues/157[#157]
Generics are now used where appropriate throughout the API

Expand Down

0 comments on commit 2a2fa59

Please sign in to comment.