]> source.dussan.org Git - poi.git/commitdiff
add @Override annotations
authorJaven O'Neal <onealj@apache.org>
Sat, 11 Jun 2016 00:42:57 +0000 (00:42 +0000)
committerJaven O'Neal <onealj@apache.org>
Sat, 11 Jun 2016 00:42:57 +0000 (00:42 +0000)
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
src/java/org/apache/poi/ss/formula/udf/DefaultUDFFinder.java
src/java/org/apache/poi/ss/formula/udf/IndexedUDFFinder.java
src/java/org/apache/poi/ss/formula/udf/UDFFinder.java

index a2cc2142167e843e6cbb2570ca0757d2f46e4689..ce47aeb82ba82b83d2efa9a0f0dc737a666e7883 100644 (file)
@@ -44,6 +44,7 @@ public class AggregatingUDFFinder implements UDFFinder {
      * @param name Name of function.
      * @return Function executor. <code>null</code> if not found
      */
+    @Override
     public FreeRefFunction findFunction(String name) {
         FreeRefFunction evaluatorForFunction;
         for (UDFFinder pack : _usedToolPacks) {
index c69f08009b209298a8db62cd3164ba3a6d7e1701..382820b1efeb2f33c21104251c7457e6e26e89b3 100644 (file)
@@ -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));
     }
index 279df4fb99ef9a04fdce223a6e0470c90968fd49..27ceaef3c17f05753e62e0397de65bf2c013a34d 100644 (file)
@@ -35,6 +35,7 @@ public class IndexedUDFFinder extends AggregatingUDFFinder {
         _funcMap = new HashMap<Integer, String>();
     }
 
+    @Override
     public FreeRefFunction findFunction(String name) {
         FreeRefFunction func = super.findFunction(name);
         if (func != null) {
index 597ec539b17da3d62cd412a38fce35168bd0c28c..d611f94e9ae9b8b6ed7973b628042cbb5db0861f 100644 (file)
@@ -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);
 
     /**