aboutsummaryrefslogtreecommitdiffstats
path: root/poi-examples
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-08-06 21:12:49 +0000
committerPJ Fanning <fanningpj@apache.org>2022-08-06 21:12:49 +0000
commitbbfd7b9ec86e1912d2adf61fc77c800e6a8a074e (patch)
tree6b1f1367951d35f50b393e6dfa4006cbcd9b429e /poi-examples
parenteaa27548fa4f1d374cfb68c9a3f51b6d0e6b8d3d (diff)
downloadpoi-bbfd7b9ec86e1912d2adf61fc77c800e6a8a074e.tar.gz
poi-bbfd7b9ec86e1912d2adf61fc77c800e6a8a074e.zip
[github-365] use lambdas. Thanks to Arturo Bernal. This closes #365
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903258 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-examples')
-rw-r--r--poi-examples/src/main/java/org/apache/poi/examples/ss/formula/SettingExternalFunction.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/formula/SettingExternalFunction.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/formula/SettingExternalFunction.java
index 49feb3f7aa..308008a4a3 100644
--- a/poi-examples/src/main/java/org/apache/poi/examples/ss/formula/SettingExternalFunction.java
+++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/formula/SettingExternalFunction.java
@@ -53,12 +53,7 @@ public class SettingExternalFunction {
// dummy function that returns NA
// don't care about the implementation, we are not interested in evaluation
// and this method will never be called
- FreeRefFunction NA = new FreeRefFunction() {
- @Override
- public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
- return ErrorEval.NA;
- }
- };
+ FreeRefFunction NA = (args, ec) -> ErrorEval.NA;
_functionsByName = new HashMap<>();
_functionsByName.put("BDP", NA);
_functionsByName.put("BDH", NA);