File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
java/src/org/openqa/selenium/grid/jmx Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1- load ("//java:defs.bzl" , "java_library" )
1+ load ("//java:defs.bzl" , "artifact" , " java_library" )
22
33java_library (
44 name = "jmx" ,
@@ -8,4 +8,7 @@ java_library(
88 "//java/src/org/openqa/selenium/grid/session:__pkg__" ,
99 "//java/test/org/openqa/selenium/grid:__subpackages__" ,
1010 ],
11+ deps = [
12+ artifact ("org.jspecify:jspecify" ),
13+ ],
1114)
Original file line number Diff line number Diff line change 2222import javax .management .InstanceAlreadyExistsException ;
2323import javax .management .MBeanServer ;
2424import javax .management .ObjectName ;
25+ import org .jspecify .annotations .NullMarked ;
26+ import org .jspecify .annotations .Nullable ;
2527
28+ @ NullMarked
2629public class JMXHelper {
2730
2831 private static final Logger LOG = Logger .getLogger (JMXHelper .class .getName ());
2932
30- public MBean register (Object bean ) {
33+ public @ Nullable MBean register (Object bean ) {
3134 MBeanServer mbs = ManagementFactory .getPlatformMBeanServer ();
3235 MBean mBean = new MBean (bean );
3336 try {
You can’t perform that action at this time.
0 commit comments