JAL-3130 deprecation change preparation
authorBen Soares <bsoares@dundee.ac.uk>
Thu, 7 Mar 2019 15:29:38 +0000 (15:29 +0000)
committerBen Soares <bsoares@dundee.ac.uk>
Thu, 7 Mar 2019 15:29:38 +0000 (15:29 +0000)
build-j11.xml
src/jalview/schemes/Consensus.java

index 4bc58b4..35d3926 100755 (executable)
     <echo message="build.classpath is '${echoClasspath}'" />
     -->
     <echo message="javac.target is '${javac.target}'" />
+    <echo message="adding -Xlint:deprecation to javac" if:set="deprecation"/>
     <javac includeantruntime="false" source="${javac.source}" target="${javac.target}" srcdir="${sourceDir}" destdir="${outputDir}" debug="${javac.debug}" classpathref="build.classpath">
+      <compilerarg value="-Xlint:deprecation" if:set="deprecation" />
       <exclude name="jalview/*applet*" />
       <exclude name="jalview/appletgui/**" />
       <exclude name="com/stevesoft/**" />
index f0d1990..9d2c738 100755 (executable)
@@ -53,8 +53,10 @@ public class Consensus
   /**
    * @deprecated Use {@link #isConserved(int[][],int,int,boolean)} instead
    */
+  @Deprecated
   public boolean isConserved(int[][] cons2, int col, int size)
   {
+    System.out.println("DEPRECATED!!!!");
     return isConserved(cons2, col, size, true);
   }
 
@@ -71,7 +73,7 @@ public class Consensus
       tot += cons2[col][mask[i]];
     }
 
-    if ((double) tot > ((threshold * size) / 100))
+    if (tot > ((threshold * size) / 100))
     {
       // System.out.println("True conserved "+tot+" from "+threshold+" out of
       // "+size+" : "+maskstr);