Skip to content

Commit

Permalink
[Java] Simplifying previously merged pull request.
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Apr 11, 2019
1 parent 9b52da0 commit 45917c0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions java/client/src/org/openqa/selenium/Proxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,7 @@ public Proxy(Map<String, ?> raw) {
setSocksProxy((String) raw.get("socksProxy"));
}
if (raw.containsKey("socksVersion") && raw.get("socksVersion") != null) {
try {
setSocksVersion((Integer) raw.get("socksVersion"));
} catch (ClassCastException exc) {
Long l = (Long) raw.get("socksVersion");
setSocksVersion(l.intValue());
}
setSocksVersion(((Number) raw.get("socksVersion")).intValue());
}
if (raw.containsKey("socksUsername") && raw.get("socksUsername") != null) {
setSocksUsername((String) raw.get("socksUsername"));
Expand Down

0 comments on commit 45917c0

Please sign in to comment.