@@ -214,7 +214,7 @@ private MacNetworkSettings getCurrentNetworkSettings() {
214
214
String output = runNetworkSetup ("-getwebproxy" , networkService );
215
215
log .fine (output );
216
216
Map <String , String > dictionary =
217
- Maps .parseDictionary (output . toString () , NETWORKSETUP_LINE , false );
217
+ Maps .parseDictionary (output , NETWORKSETUP_LINE , false );
218
218
String strEnabled = verifyKey ("Enabled" , dictionary , "networksetup" , output );
219
219
boolean enabled = isTrueOrSomething (strEnabled );
220
220
String server = verifyKey ("Server" , dictionary , "networksetup" , output );
@@ -282,11 +282,11 @@ private String getPrimaryNetworkServiceName() {
282
282
// and communicated with it line-by-line using stdin/stdout
283
283
String output = runScutil ("show State:/Network/Global/IPv4" );
284
284
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 );
286
286
String primaryInterface = verifyKey ("PrimaryInterface" , dictionary , "scutil" , output );
287
287
output = runNetworkSetup ("-listnetworkserviceorder" );
288
288
log .fine (output );
289
- dictionary = Maps .parseDictionary (output . toString () , NETWORKSETUP_LISTORDER_LINE , true );
289
+ dictionary = Maps .parseDictionary (output , NETWORKSETUP_LISTORDER_LINE , true );
290
290
String userDefinedName =
291
291
verifyKey (primaryInterface , dictionary , "networksetup -listnetworksetuporder" , output );
292
292
networkService = userDefinedName ;
0 commit comments