File tree 2 files changed +2
-2
lines changed
third_party/vmServiceDrivers/org/dartlang/vm/service
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ private static JsonArray getPackagesFromPackageConfig(@NotNull List<PubRoot> pub
330
330
// parse it
331
331
try {
332
332
final String contents = new String (configFile .contentsToByteArray (true /* cache contents */ ));
333
- final JsonElement element = new JsonParser (). parse (contents );
333
+ final JsonElement element = JsonParser . parseString (contents );
334
334
if (element == null ) {
335
335
continue ;
336
336
}
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ void processMessage(String jsonText) {
394
394
// Decode the JSON
395
395
JsonObject json ;
396
396
try {
397
- json = (JsonObject ) new JsonParser (). parse (jsonText );
397
+ json = (JsonObject ) JsonParser . parseString (jsonText );
398
398
} catch (Exception e ) {
399
399
Logging .getLogger ().logError ("Parse message failed: " + jsonText , e );
400
400
return ;
You can’t perform that action at this time.
0 commit comments