You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2019/05/31 17:51:04 UTC
[httpcomponents-core] 01/06: Code formatting (no functional changes)
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch message-support
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit ecdebe19df5fe77abb493bd701823dcac55b1861
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Thu May 30 11:58:07 2019 +0200
Code formatting (no functional changes)
---
.../main/java/org/apache/hc/core5/testing/classic/Wire.java | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/classic/Wire.java b/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/classic/Wire.java
index aebe608..6f20a4b 100644
--- a/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/classic/Wire.java
+++ b/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/classic/Wire.java
@@ -30,6 +30,7 @@ package org.apache.hc.core5.testing.classic;
import java.nio.ByteBuffer;
import org.slf4j.Logger;
+
public class Wire {
private final Logger log;
@@ -48,11 +49,11 @@ public class Wire {
if (ch == 13) {
buffer.append("[\\r]");
} else if (ch == 10) {
- buffer.append("[\\n]\"");
- buffer.insert(0, "\"");
- buffer.insert(0, header);
- this.log.debug(this.id + " " + buffer.toString());
- buffer.setLength(0);
+ buffer.append("[\\n]\"");
+ buffer.insert(0, "\"");
+ buffer.insert(0, header);
+ this.log.debug(this.id + " " + buffer.toString());
+ buffer.setLength(0);
} else if ((ch < 32) || (ch > 127)) {
buffer.append("[0x");
buffer.append(Integer.toHexString(ch));