Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion java/src/org/openqa/selenium/chromium/ChromiumDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ public ScriptKey pin(String script) {
// Create the actual script we're going to use.
String scriptToUse =
String.format(
"window.seleniumPinnedScript%s = function(){%s}", Math.abs(script.hashCode()), script);
"window.seleniumPinnedScript%s = function(){%s}",
Math.abs((long) script.hashCode()), script);

DevTools devTools = getDevTools();
devTools.createSessionIfThereIsNotOne();
Expand Down
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/net/PortProber.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private static boolean isFree(String bindHost, int port) {
socket.setReuseAddress(true);
socket.bind(new InetSocketAddress(bindHost, port));
return true;
} catch (Exception e) {
} catch (IOException | RuntimeException e) {
return false;
}
}
Expand Down
Loading