-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P5
-
Affects Version/s: None
-
Component/s: core-libs
-
b20
Is
STREAM_STATE = MethodHandles.lookup()
.findVarHandle(Stream.class, "streamState", int.class);
DEREGISTERED = MethodHandles.lookup()
.findVarHandle(Stream.class, "deRegistered", boolean.class);
Can be
MethodHandles.Lookup lookup = MethodHandles.lookup();
STREAM_STATE = lookup
.findVarHandle(Stream.class, "streamState", int.class);
DEREGISTERED = lookup
.findVarHandle(Stream.class, "deRegistered", boolean.class);
STREAM_STATE = MethodHandles.lookup()
.findVarHandle(Stream.class, "streamState", int.class);
DEREGISTERED = MethodHandles.lookup()
.findVarHandle(Stream.class, "deRegistered", boolean.class);
Can be
MethodHandles.Lookup lookup = MethodHandles.lookup();
STREAM_STATE = lookup
.findVarHandle(Stream.class, "streamState", int.class);
DEREGISTERED = lookup
.findVarHandle(Stream.class, "deRegistered", boolean.class);
- links to
-
Commit
openjdk/jdk/89610770
-
Review(master)
openjdk/jdk/18862