mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8244146: javac changes for JEP 306
8266399: Core libs update for JEP 306 Reviewed-by: sadayapalam, bpb, naoto
This commit is contained in:
parent
c2c0208dfd
commit
0ae4ceb413
28 changed files with 578 additions and 56 deletions
|
@ -86,7 +86,6 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
|
|||
* @author Joseph D. Darcy
|
||||
* @since 1.3
|
||||
*/
|
||||
|
||||
public final class StrictMath {
|
||||
|
||||
/**
|
||||
|
@ -207,10 +206,8 @@ public final class StrictMath {
|
|||
* @return the measurement of the angle {@code angdeg}
|
||||
* in radians.
|
||||
*/
|
||||
public static strictfp double toRadians(double angdeg) {
|
||||
// Do not delegate to Math.toRadians(angdeg) because
|
||||
// this method has the strictfp modifier.
|
||||
return angdeg * DEGREES_TO_RADIANS;
|
||||
public static double toRadians(double angdeg) {
|
||||
return Math.toRadians(angdeg);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -224,10 +221,8 @@ public final class StrictMath {
|
|||
* @return the measurement of the angle {@code angrad}
|
||||
* in degrees.
|
||||
*/
|
||||
public static strictfp double toDegrees(double angrad) {
|
||||
// Do not delegate to Math.toDegrees(angrad) because
|
||||
// this method has the strictfp modifier.
|
||||
return angrad * RADIANS_TO_DEGREES;
|
||||
public static double toDegrees(double angrad) {
|
||||
return Math.toDegrees(angrad);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue