JAL-2228 patch for Java 7 compatibility
authorJim Procter <jprocter@issues.jalview.org>
Thu, 10 Nov 2016 12:44:52 +0000 (12:44 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 10 Nov 2016 12:44:52 +0000 (12:44 +0000)
src/jalview/workers/AlignmentAnnotationFactory.java

index 8a86ce0..4e11c70 100644 (file)
@@ -43,7 +43,7 @@ public class AlignmentAnnotationFactory
         {
           if (m.getName().equals("newCalculator"))
           {
-            if (m.getParameterCount() == 3
+            if (m.getParameterTypes().length == 3
                     && m.getParameterTypes()[2].isInstance(counter))
             {
               newCalcMethod = m;