File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed 
java/src/org/openqa/selenium/remote Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1818package  org .openqa .selenium .remote ;
1919
2020import  java .util .Map ;
21+ import  org .jspecify .annotations .NullMarked ;
22+ import  org .jspecify .annotations .Nullable ;
2123
2224/** 
2325 * An encapsulation of {@link org.openqa.selenium.remote.RemoteWebDriver#executeScript(String, 
2426 * Object...)}. 
2527 */ 
28+ @ NullMarked 
2629public  interface  ExecuteMethod  {
2730  /** 
2831   * Execute the given command on the remote webdriver server. Any exceptions will be thrown by the 
@@ -32,5 +35,5 @@ public interface ExecuteMethod {
3235   * @param parameters The parameters to execute that command with 
3336   * @return The result of {@link Response#getValue()}. 
3437   */ 
35-   Object  execute (String  commandName , Map <String , ?> parameters );
38+   @ Nullable   Object  execute (String  commandName ,  @ Nullable  Map <String , ?> parameters );
3639}
Original file line number Diff line number Diff line change 1818package  org .openqa .selenium .remote ;
1919
2020import  java .util .Map ;
21+ import  org .jspecify .annotations .NullMarked ;
22+ import  org .jspecify .annotations .Nullable ;
2123import  org .openqa .selenium .WebDriver ;
2224import  org .openqa .selenium .WrapsDriver ;
2325import  org .openqa .selenium .internal .Require ;
2426
27+ @ NullMarked 
2528public  class  RemoteExecuteMethod  implements  ExecuteMethod , WrapsDriver  {
2629  private  final  RemoteWebDriver  driver ;
2730
@@ -30,7 +33,7 @@ public RemoteExecuteMethod(RemoteWebDriver driver) {
3033  }
3134
3235  @ Override 
33-   public  Object  execute (String  commandName , Map <String , ?> parameters ) {
36+   public  @ Nullable   Object  execute (String  commandName ,  @ Nullable  Map <String , ?> parameters ) {
3437    Response  response ;
3538
3639    if  (parameters  == null  || parameters .isEmpty ()) {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments