From 84fa342125a454e5590b4c876b0c4ebc241b5c9e Mon Sep 17 00:00:00 2001 From: John May Date: Tue, 7 Feb 2017 22:27:27 +0000 Subject: [PATCH] Standard and faster idiom --- .../src/main/java/org/openscience/cdk/structgen/MathTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/structgen/src/main/java/org/openscience/cdk/structgen/MathTools.java b/tool/structgen/src/main/java/org/openscience/cdk/structgen/MathTools.java index d11484ccbf..49a233526b 100644 --- a/tool/structgen/src/main/java/org/openscience/cdk/structgen/MathTools.java +++ b/tool/structgen/src/main/java/org/openscience/cdk/structgen/MathTools.java @@ -84,7 +84,7 @@ static boolean isOdd(int intValue) { } static boolean isEven(int intValue) { - return intValue % 2 == 0; + return (intValue & 0x1) == 0; } }