Skip to content

Commit c1b034f

Browse files
committed
No need to call toString on a String.
1 parent 362bae5 commit c1b034f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/client/src/org/openqa/selenium/browserlaunchers/MacProxyManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private MacNetworkSettings getCurrentNetworkSettings() {
214214
String output = runNetworkSetup("-getwebproxy", networkService);
215215
log.fine(output);
216216
Map<String, String> dictionary =
217-
Maps.parseDictionary(output.toString(), NETWORKSETUP_LINE, false);
217+
Maps.parseDictionary(output, NETWORKSETUP_LINE, false);
218218
String strEnabled = verifyKey("Enabled", dictionary, "networksetup", output);
219219
boolean enabled = isTrueOrSomething(strEnabled);
220220
String server = verifyKey("Server", dictionary, "networksetup", output);
@@ -282,11 +282,11 @@ private String getPrimaryNetworkServiceName() {
282282
// and communicated with it line-by-line using stdin/stdout
283283
String output = runScutil("show State:/Network/Global/IPv4");
284284
log.fine(output);
285-
Map<String, String> dictionary = Maps.parseDictionary(output.toString(), SCUTIL_LINE, false);
285+
Map<String, String> dictionary = Maps.parseDictionary(output, SCUTIL_LINE, false);
286286
String primaryInterface = verifyKey("PrimaryInterface", dictionary, "scutil", output);
287287
output = runNetworkSetup("-listnetworkserviceorder");
288288
log.fine(output);
289-
dictionary = Maps.parseDictionary(output.toString(), NETWORKSETUP_LISTORDER_LINE, true);
289+
dictionary = Maps.parseDictionary(output, NETWORKSETUP_LISTORDER_LINE, true);
290290
String userDefinedName =
291291
verifyKey(primaryInterface, dictionary, "networksetup -listnetworksetuporder", output);
292292
networkService = userDefinedName;

0 commit comments

Comments
 (0)