We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We can remove the deprecated JsonParser with static methods as mentioned in Gson documentation.
The expected result will solve the code smell below - https://sonarcloud.io/project/issues?id=jkubeio_jkube&open=AXgDJoU2sHuH603U0SQ6&resolved=false&severities=MINOR
Proposed Solution
try(JsonReader json = new JsonReader(new InputStreamReader(stream))) { json.setLenient(true); while (json.peek() != JsonToken.END_DOCUMENT) { JsonObject jsonObject = JsonParser.parseReader(json).getAsJsonObject(); handler.process(jsonObject); } } finally { handler.stop(); }
If the issue and proposed solution seems correct then I can send a PR.
The text was updated successfully, but these errors were encountered:
theexplorist
Successfully merging a pull request may close this issue.
We can remove the deprecated JsonParser with static methods as mentioned in Gson documentation.
The expected result will solve the code smell below -
https://sonarcloud.io/project/issues?id=jkubeio_jkube&open=AXgDJoU2sHuH603U0SQ6&resolved=false&severities=MINOR
Proposed Solution
If the issue and proposed solution seems correct then I can send a PR.
The text was updated successfully, but these errors were encountered: