Skip to content

Conversation

@ennoeller
Copy link
Contributor

No description provided.

@@ -86,14 +86,16 @@ private String parseBody(Response response) throws IOException {

if (contentLength != 0L) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if on ebavajalik

Copy link
Contributor

@Jorich Jorich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Väike täiendus veel teha.

);
}
var bodyString = buffer.clone().readString(charset);
var bodyStringLength = bodyString.length();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Siin on eeldus et bodyString ei ole null, ma ei tea kas ta saab või ei saa seda olla. turvalisem oleks kirjutada
var bodyStringLength = bodyString != null ? bodyString.length() : 0;

Copy link
Contributor

@Jorich Jorich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lisasin ühe kommentaari null safety kohta

@ennoeller ennoeller merged commit 2cbc8da into master Apr 15, 2025
@sonarqubecloud
Copy link

@rammrain rammrain deleted the Retrofit-response-body-mapper-fix branch January 20, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants