File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
java/src/org/openqa/selenium/bidi/permissions Expand file tree Collapse file tree 2 files changed +9
-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 = "permissions" ,
@@ -14,4 +14,7 @@ java_library(
1414 "//java/test/org/openqa/selenium/bidi:__subpackages__" ,
1515 "//java/test/org/openqa/selenium/grid:__subpackages__" ,
1616 ],
17+ deps = [
18+ artifact ("org.jspecify:jspecify" ),
19+ ],
1720)
Original file line number Diff line number Diff line change 1717
1818package org .openqa .selenium .bidi .permissions ;
1919
20+ import org .jspecify .annotations .NullMarked ;
21+ import org .jspecify .annotations .Nullable ;
22+
23+ @ NullMarked
2024public enum PermissionState {
2125 GRANTED ("granted" ),
2226 DENIED ("denied" ),
@@ -33,7 +37,7 @@ public String toString() {
3337 return state ;
3438 }
3539
36- public static PermissionState findByName (String name ) {
40+ public static @ Nullable PermissionState findByName (String name ) {
3741 PermissionState result = null ;
3842 for (PermissionState state : values ()) {
3943 if (state .toString ().equalsIgnoreCase (name )) {
You can’t perform that action at this time.
0 commit comments