From 6ed13b4b5b16b2188a5cd86429cbddf823bb3f00 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Sat, 11 Jun 2016 00:42:57 +0000 Subject: [PATCH] add @Override annotations git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1747825 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/ss/formula/udf/AggregatingUDFFinder.java | 1 + src/java/org/apache/poi/ss/formula/udf/DefaultUDFFinder.java | 1 + src/java/org/apache/poi/ss/formula/udf/IndexedUDFFinder.java | 1 + src/java/org/apache/poi/ss/formula/udf/UDFFinder.java | 1 + 4 files changed, 4 insertions(+) diff --git a/src/java/org/apache/poi/ss/formula/udf/AggregatingUDFFinder.java b/src/java/org/apache/poi/ss/formula/udf/AggregatingUDFFinder.java index a2cc21421..ce47aeb82 100644 --- a/src/java/org/apache/poi/ss/formula/udf/AggregatingUDFFinder.java +++ b/src/java/org/apache/poi/ss/formula/udf/AggregatingUDFFinder.java @@ -44,6 +44,7 @@ public class AggregatingUDFFinder implements UDFFinder { * @param name Name of function. * @return Function executor. null if not found */ + @Override public FreeRefFunction findFunction(String name) { FreeRefFunction evaluatorForFunction; for (UDFFinder pack : _usedToolPacks) { 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 c69f08009..382820b1e 100644 --- a/src/java/org/apache/poi/ss/formula/udf/DefaultUDFFinder.java +++ b/src/java/org/apache/poi/ss/formula/udf/DefaultUDFFinder.java @@ -44,6 +44,7 @@ public final class DefaultUDFFinder implements UDFFinder { _functionsByName = m; } + @Override public FreeRefFunction findFunction(String name) { return _functionsByName.get(name.toUpperCase(Locale.ROOT)); } diff --git a/src/java/org/apache/poi/ss/formula/udf/IndexedUDFFinder.java b/src/java/org/apache/poi/ss/formula/udf/IndexedUDFFinder.java index 279df4fb9..27ceaef3c 100644 --- a/src/java/org/apache/poi/ss/formula/udf/IndexedUDFFinder.java +++ b/src/java/org/apache/poi/ss/formula/udf/IndexedUDFFinder.java @@ -35,6 +35,7 @@ public class IndexedUDFFinder extends AggregatingUDFFinder { _funcMap = new HashMap(); } + @Override public FreeRefFunction findFunction(String name) { FreeRefFunction func = super.findFunction(name); if (func != null) { diff --git a/src/java/org/apache/poi/ss/formula/udf/UDFFinder.java b/src/java/org/apache/poi/ss/formula/udf/UDFFinder.java index 597ec539b..d611f94e9 100644 --- a/src/java/org/apache/poi/ss/formula/udf/UDFFinder.java +++ b/src/java/org/apache/poi/ss/formula/udf/UDFFinder.java @@ -26,6 +26,7 @@ import org.apache.poi.ss.formula.functions.FreeRefFunction; * @author PUdalau */ public interface UDFFinder { + // FIXME: Findbugs error: IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION public static final UDFFinder DEFAULT = new AggregatingUDFFinder(AnalysisToolPak.instance); /**