http-client-branch: add several private <init> methods http-client-branch
authorchegar
Tue, 06 Feb 2018 15:20:30 +0000
branchhttp-client-branch
changeset 56080 64846522c0d5
parent 56079 d23b02f37fce
child 56081 20c6742e5545
http-client-branch: add several private <init> methods
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/RequestPublishers.java
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/ResponseBodyHandlers.java
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/RequestPublishers.java	Tue Feb 06 14:10:28 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/RequestPublishers.java	Tue Feb 06 15:20:30 2018 +0000
@@ -51,7 +51,9 @@
 import jdk.incubator.http.HttpRequest.BodyPublisher;
 import jdk.incubator.http.internal.common.Utils;
 
-public class RequestPublishers {
+public final class RequestPublishers {
+
+    private RequestPublishers() { }
 
     public static class ByteArrayPublisher implements BodyPublisher {
         private volatile Flow.Publisher<ByteBuffer> delegate;
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/ResponseBodyHandlers.java	Tue Feb 06 14:10:28 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/ResponseBodyHandlers.java	Tue Feb 06 15:20:30 2018 +0000
@@ -42,7 +42,9 @@
 import jdk.incubator.http.internal.ResponseSubscribers.PathSubscriber;
 import static jdk.incubator.http.internal.common.Utils.unchecked;
 
-public class ResponseBodyHandlers {
+public final class ResponseBodyHandlers {
+
+    private ResponseBodyHandlers() { }
 
     /**
      * A Path body handler.