From: Javen O'Neal Date: Sat, 11 Jun 2016 00:34:22 +0000 (+0000) Subject: whitespace (tabs to spaces) X-Git-Tag: REL_3_15_BETA2~165 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3ccf7eabf8e2865332622b51bc2cb49aa5531b3f;p=poi.git whitespace (tabs to spaces) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1747822 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/ss/formula/udf/DefaultUDFFinder.java b/src/java/org/apache/poi/ss/formula/udf/DefaultUDFFinder.java index 724b265732..c69f08009b 100644 --- a/src/java/org/apache/poi/ss/formula/udf/DefaultUDFFinder.java +++ b/src/java/org/apache/poi/ss/formula/udf/DefaultUDFFinder.java @@ -29,22 +29,22 @@ import org.apache.poi.ss.formula.functions.FreeRefFunction; * @author PUdalau */ public final class DefaultUDFFinder implements UDFFinder { - private final Map _functionsByName; - - public DefaultUDFFinder(String[] functionNames, FreeRefFunction[] functionImpls) { - int nFuncs = functionNames.length; - if (functionImpls.length != nFuncs) { - throw new IllegalArgumentException( - "Mismatch in number of function names and implementations"); - } - HashMap m = new HashMap(nFuncs * 3 / 2); - for (int i = 0; i < functionImpls.length; i++) { - m.put(functionNames[i].toUpperCase(Locale.ROOT), functionImpls[i]); - } - _functionsByName = m; - } - - public FreeRefFunction findFunction(String name) { - return _functionsByName.get(name.toUpperCase(Locale.ROOT)); - } + private final Map _functionsByName; + + public DefaultUDFFinder(String[] functionNames, FreeRefFunction[] functionImpls) { + int nFuncs = functionNames.length; + if (functionImpls.length != nFuncs) { + throw new IllegalArgumentException( + "Mismatch in number of function names and implementations"); + } + HashMap m = new HashMap(nFuncs * 3 / 2); + for (int i = 0; i < functionImpls.length; i++) { + m.put(functionNames[i].toUpperCase(Locale.ROOT), functionImpls[i]); + } + _functionsByName = m; + } + + public FreeRefFunction findFunction(String name) { + return _functionsByName.get(name.toUpperCase(Locale.ROOT)); + } }