Skip to content

Commit f67d011

Browse files
cushonJavac Team
authored andcommitted
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: 677884732
1 parent 171153d commit f67d011

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/com/google/turbine/binder/ConstEvaluator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@
7979
/**
8080
* Constant expression evaluation.
8181
*
82-
* <p>JLS §15.4 requires this class to be strictfp.
82+
* <p>This class requires strict floating point operations. In Java SE 17 and later, the Java SE
83+
* Platform always requires strict evaluation of floating-point expressions.
8384
*/
84-
public strictfp class ConstEvaluator {
85+
public class ConstEvaluator {
8586

8687
/** The symbol of the originating class, for visibility checks. */
8788
private final @Nullable ClassSymbol origin;

0 commit comments

Comments
 (0)