Skip to content

Commit 6635b94

Browse files
lauraharkercopybara-github
authored andcommitted
Remove unnecessary strictfp from PeepholeReplaceKnownMethods
Fixes console warnings such as: src/com/google/javascript/jscomp/PeepholeReplaceKnownMethods.java:123: warning: [strictfp] as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not requi red private strictfp Node tryFoldKnownNumberMethods(Node subtree, Node callTarget) { ^ PiperOrigin-RevId: 802287353
1 parent 23a6050 commit 6635b94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/google/javascript/jscomp/PeepholeReplaceKnownMethods.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private Node tryFoldKnownArrayMethods(Node subtree, Node callTarget) {
120120
return arraylit;
121121
}
122122

123-
private strictfp Node tryFoldKnownNumberMethods(Node subtree, Node callTarget) {
123+
private Node tryFoldKnownNumberMethods(Node subtree, Node callTarget) {
124124
checkArgument(subtree.isCall() && callTarget.isGetProp());
125125
String methodName = callTarget.getString();
126126
switch (methodName) {
@@ -171,7 +171,7 @@ private strictfp Node tryFoldKnownNumberMethods(Node subtree, Node callTarget) {
171171
}
172172

173173
/** Tries to evaluate a method on the Math object */
174-
private strictfp Node tryFoldKnownMathMethods(Node subtree, Node callTarget) {
174+
private Node tryFoldKnownMathMethods(Node subtree, Node callTarget) {
175175
checkArgument(subtree.isCall() && callTarget.isGetProp());
176176

177177
// first collect the arguments, if they are all numbers then we proceed

0 commit comments

Comments
 (0)