mirror of
https://github.com/nextcloud/android.git
synced 2024-11-30 18:21:10 +03:00
code formatting
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
6850d73c40
commit
959cce44fb
1 changed files with 7 additions and 6 deletions
|
@ -218,16 +218,17 @@ public class InputStreamBinder extends IInputStreamService.Stub {
|
|||
StringBuilder total = new StringBuilder();
|
||||
InputStream inputStream = method.getResponseBodyAsStream();
|
||||
// If response body is available
|
||||
if(inputStream != null) {
|
||||
BufferedReader r = new BufferedReader(new InputStreamReader(inputStream));
|
||||
String line = r.readLine();
|
||||
while(line != null) {
|
||||
if (inputStream != null) {
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
|
||||
String line = reader.readLine();
|
||||
while (line != null) {
|
||||
total.append(line).append('\n');
|
||||
line = r.readLine();
|
||||
line = reader.readLine();
|
||||
}
|
||||
Log_OC.e(TAG, total.toString());
|
||||
}
|
||||
throw new IllegalStateException(EXCEPTION_HTTP_REQUEST_FAILED, new IllegalStateException(String.valueOf(status), new Throwable(total.toString())));
|
||||
throw new IllegalStateException(EXCEPTION_HTTP_REQUEST_FAILED,
|
||||
new IllegalStateException(String.valueOf(status), new Throwable(total.toString())));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue