Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.9.0
-
None
-
None
Description
Resolve FindBugs reported issue in FileTransfer.java:
Before
String line = reader.readLine(); while(line != null) { bodyBuilder.append(line); line = reader.readLine(); if(line != null) bodyBuilder.append('\n'); } body = bodyBuilder.toString();
After
try { String line = reader.readLine(); while(line != null) { bodyBuilder.append(line); line = reader.readLine(); if(line != null) { bodyBuilder.append('\n'); } } body = bodyBuilder.toString(); } finally { reader.close(); }
Attachments
Issue Links
- Is contained by
-
CB-4909 Resolve FindBugs issues
- Closed