diff options
author | Martin Fietz <martin.fietz@gmail.com> | 2018-01-14 18:00:57 +0100 |
---|---|---|
committer | Martin Fietz <martin.fietz@gmail.com> | 2018-01-14 18:00:57 +0100 |
commit | e44a54c965f70bd47c03111bd09a28c878efc7ba (patch) | |
tree | 689126594abe7fd4a474be40c182c28bc5fa4bd3 /app/src | |
parent | 55e2ac4ebe0ce8b58a70159253587bf098b8910b (diff) | |
download | AntennaPod-e44a54c965f70bd47c03111bd09a28c878efc7ba.zip |
Remove redundant call to 'String.format()'
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java b/app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java index ea91c4832..ee393933e 100644 --- a/app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java +++ b/app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java @@ -688,7 +688,7 @@ public abstract class NanoHTTPD { outputStream.write(buff, 0, read); outputStream.write(CRLF); } - outputStream.write(String.format("0\r\n\r\n").getBytes()); + outputStream.write("0\r\n\r\n".getBytes()); } private void sendAsFixedLength(OutputStream outputStream, int pending) throws IOException { @@ -858,7 +858,7 @@ public abstract class NanoHTTPD { this.tempFileManager = tempFileManager; this.inputStream = new PushbackInputStream(inputStream, BUFSIZE); this.outputStream = outputStream; - String remoteIp = inetAddress.isLoopbackAddress() || inetAddress.isAnyLocalAddress() ? "127.0.0.1" : inetAddress.getHostAddress(); + String remoteIp = inetAddress.isLoopbackAddress() || inetAddress.isAnyLocalAddress() ? "127.0.0.1" : inetAddress.getHostAddress().toString(); headers = new ArrayMap<>(); headers.put("remote-addr", remoteIp); |