--- 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.