http-client-branch: review comment - style and formatting in DebugLogger http-client-branch
authorchegar
Thu, 29 Mar 2018 20:22:55 +0100
branchhttp-client-branch
changeset 56371 5497ce426276
parent 56370 86f739cd4cc5
child 56372 98075dcd4ffc
http-client-branch: review comment - style and formatting in DebugLogger
src/java.net.http/share/classes/jdk/internal/net/http/common/DebugLogger.java
--- a/src/java.net.http/share/classes/jdk/internal/net/http/common/DebugLogger.java	Thu Mar 29 20:18:43 2018 +0100
+++ b/src/java.net.http/share/classes/jdk/internal/net/http/common/DebugLogger.java	Thu Mar 29 20:22:55 2018 +0100
@@ -22,6 +22,7 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
+
 package jdk.internal.net.http.common;
 
 import java.io.PrintStream;
@@ -32,16 +33,16 @@
 
 /**
  * A {@code System.Logger} that forwards all messages to an underlying
- * {@code System.Logger}, after adding some decoration.
- * The logger also has the ability to additionally send the logged messages
- * to System.err or System.out, whether the underlying logger is activated or not.
- * In addition instance of {@code DebugLogger} support both
- * {@link String#format(String, Object...)} and
+ * {@code System.Logger}, after adding some decoration. The logger also has the
+ * ability to additionally send the logged messages to System.err or System.out,
+ * whether the underlying logger is activated or not. In addition instance of
+ * {@code DebugLogger} support both {@link String#format(String, Object...)} and
  * {@link java.text.MessageFormat#format(String, Object...)} formatting.
- * String-like formatting is enabled by the presence of "%s" or "%d" in the format
- * string. MessageFormat-like formatting is enabled by the presence of "{0" or "{1".
- * <p>
- * See {@link Utils#getDebugLogger(Supplier, boolean)} and
+ * String-like formatting is enabled by the presence of "%s" or "%d" in the
+ * format string. MessageFormat-like formatting is enabled by the presence of
+ * "{0" or "{1".
+ *
+ * <p> See {@link Utils#getDebugLogger(Supplier, boolean)} and
  * {@link Utils#getHpackLogger(Supplier, boolean)}.
  */
 class DebugLogger implements Logger {
@@ -243,15 +244,21 @@
         }
     }
 
-    public static DebugLogger createHttpLogger(Supplier<String> dbgTag, Level outLevel, Level errLevel) {
+    public static DebugLogger createHttpLogger(Supplier<String> dbgTag,
+                                               Level outLevel,
+                                               Level errLevel) {
         return new DebugLogger(HTTP, dbgTag, outLevel, errLevel);
     }
 
-    public static DebugLogger createWebSocketLogger(Supplier<String> dbgTag, Level outLevel, Level errLevel) {
+    public static DebugLogger createWebSocketLogger(Supplier<String> dbgTag,
+                                                    Level outLevel,
+                                                    Level errLevel) {
         return new DebugLogger(WS, dbgTag, outLevel, errLevel);
     }
 
-    public static DebugLogger createHpackLogger(Supplier<String> dbgTag, Level outLevel, Level errLevel) {
+    public static DebugLogger createHpackLogger(Supplier<String> dbgTag,
+                                                Level outLevel,
+                                                Level errLevel) {
         return new DebugLogger(HPACK, dbgTag, outLevel, errLevel);
     }
 }