Skip to content

Commit f2a3751

Browse files
blicklycopybara-github
authored andcommitted
Use static import for Guava's Streams.stream
PiperOrigin-RevId: 326269990
1 parent 8c25e6d commit f2a3751

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.common.base.Preconditions.checkNotNull;
2020
import static com.google.common.base.Preconditions.checkState;
21+
import static com.google.common.collect.Streams.stream;
2122

2223
import com.google.common.annotations.VisibleForTesting;
2324
import com.google.common.collect.Streams;
@@ -122,7 +123,7 @@ private boolean isSafeValue(Scope scope, Node argument) {
122123
return true;
123124
} else if (argument.isTemplateLit()) {
124125
// Each templateLit child is either a TemplateLitString, or has children which are substituted
125-
return Streams.stream(argument.children())
126+
return stream(argument.children())
126127
.filter(node -> !node.isTemplateLitString())
127128
.map(Node::children)
128129
.flatMap(Streams::stream)

0 commit comments

Comments
 (0)