From bbfd7b9ec86e1912d2adf61fc77c800e6a8a074e Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 6 Aug 2022 21:12:49 +0000 Subject: [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 --- .../apache/poi/examples/ss/formula/SettingExternalFunction.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'poi-examples/src/main') 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); -- cgit v1.2.3