@@ -70,7 +70,7 @@ public class AppiumDriver extends RemoteWebDriver implements
7070 CanRememberExtensionPresence ,
7171 HasSettings {
7272
73- private static final ErrorHandler errorHandler = new ErrorHandler (new ErrorCodesMobile (), true );
73+ private static final ErrorHandler ERROR_HANDLER = new ErrorHandler (new ErrorCodesMobile (), true );
7474 // frequently used command parameters
7575 private final URL remoteAddress ;
7676 protected final RemoteLocationContext locationContext ;
@@ -89,7 +89,7 @@ public AppiumDriver(HttpCommandExecutor executor, Capabilities capabilities) {
8989 super (executor , capabilities );
9090 this .executeMethod = new AppiumExecutionMethod (this );
9191 locationContext = new RemoteLocationContext (executeMethod );
92- super .setErrorHandler (errorHandler );
92+ super .setErrorHandler (ERROR_HANDLER );
9393 this .remoteAddress = executor .getAddressOfRemoteServer ();
9494 }
9595
@@ -167,7 +167,7 @@ public AppiumDriver(URL remoteSessionAddress, String platformName, String automa
167167 setCommandExecutor (executor );
168168 this .executeMethod = new AppiumExecutionMethod (this );
169169 locationContext = new RemoteLocationContext (executeMethod );
170- super .setErrorHandler (errorHandler );
170+ super .setErrorHandler (ERROR_HANDLER );
171171 this .remoteAddress = executor .getAddressOfRemoteServer ();
172172
173173 setSessionId (sessionAddress .getId ());
0 commit comments