Skip to content

Commit

Permalink
Remove unnecessary strictfp modifier
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cushon authored and Javac Team committed Sep 23, 2024
1 parent 171153d commit 0e3229a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions java/com/google/turbine/binder/ConstEvaluator.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@
/**
* Constant expression evaluation.
*
* <p>JLS §15.4 requires this class to be strictfp.
* <p>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;
Expand Down

0 comments on commit 0e3229a

Please sign in to comment.