From 0e3229a52579795495b68c0ac98ad26c62529cbe Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Sun, 22 Sep 2024 13:55:11 -0700 Subject: [PATCH] Remove unnecessary strictfp modifier Turbine's minimum supported JDK version is JDK 17. This fixes the following warning: ``` third_party/java_src/turbine/java/com/google/turbine/binder/ConstEvaluator.java:84: warning: [strictfp] as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not required public strictfp class ConstEvaluator { ^ ``` PiperOrigin-RevId: 677531227 --- java/com/google/turbine/binder/ConstEvaluator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/com/google/turbine/binder/ConstEvaluator.java b/java/com/google/turbine/binder/ConstEvaluator.java index d088fe44..23991762 100644 --- a/java/com/google/turbine/binder/ConstEvaluator.java +++ b/java/com/google/turbine/binder/ConstEvaluator.java @@ -79,9 +79,10 @@ /** * Constant expression evaluation. * - *

JLS ยง15.4 requires this class to be strictfp. + *

This class requires strict floating point operations. In Java SE 17 and later, the Java SE + * Platform always requires strict evaluation of floating-point expressions. */ -public strictfp class ConstEvaluator { +public class ConstEvaluator { /** The symbol of the originating class, for visibility checks. */ private final @Nullable ClassSymbol origin;