JAL-1950 patch for java 1.7 compatibility
authorJim Procter <jprocter@issues.jalview.org>
Thu, 10 Nov 2016 12:36:57 +0000 (12:36 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 10 Nov 2016 12:36:57 +0000 (12:36 +0000)
src/jalview/schemes/AnnotationColourGradient.java

index b580be2..9e1a944 100755 (executable)
@@ -444,8 +444,8 @@ public class AnnotationColourGradient extends FollowerColourScheme
             * range + b1);
     if (annotation.score == annotation.score && positionToTransparency)
     {
-      return new Color(Integer.min(dr + trans, midtr), Integer.min(dg
-              + trans, midtr), Integer.min(db + trans, midtr));
+      return new Color(Math.min(dr + trans, midtr), Math.min(dg
+              + trans, midtr), Math.min(db + trans, midtr));
     }
     else
     {