http-client-branch: fix a few typos in spec http-client-branch
authorchegar
Fri, 16 Feb 2018 16:27:01 +0000
branchhttp-client-branch
changeset 56141 c28d710b8ef9
parent 56140 049b6940e9db
child 56142 571ba7474214
http-client-branch: fix a few typos in spec
src/java.net.http/share/classes/java/net/http/HttpRequest.java
src/java.net.http/share/classes/java/net/http/HttpResponse.java
--- a/src/java.net.http/share/classes/java/net/http/HttpRequest.java	Fri Feb 16 16:23:54 2018 +0000
+++ b/src/java.net.http/share/classes/java/net/http/HttpRequest.java	Fri Feb 16 16:27:01 2018 +0000
@@ -576,7 +576,7 @@
          * A request body publisher that takes data from the contents of a File.
          *
          * <p> Security manager permission checks are performed in this factory
-         * method, when a {@code BodyPublisher} is created. Care must be taken
+         * method, when the {@code BodyPublisher} is created. Care must be taken
          * that the {@code BodyPublisher} is not shared with untrusted code.
          *
          * @param path the path to the file containing the body
--- a/src/java.net.http/share/classes/java/net/http/HttpResponse.java	Fri Feb 16 16:23:54 2018 +0000
+++ b/src/java.net.http/share/classes/java/net/http/HttpResponse.java	Fri Feb 16 16:27:01 2018 +0000
@@ -448,7 +448,7 @@
          * reference to its {@link Path}.
          *
          * <p> Security manager permission checks are performed in this factory
-         * method, when a {@code BodyHandler} is created. Care must be taken
+         * method, when the {@code BodyHandler} is created. Care must be taken
          * that the {@code BodyHandler} is not shared with untrusted code.
          *
          * @param file the file to store the body in
@@ -483,7 +483,7 @@
          * <p> Equivalent to: {@code asFile(file, CREATE, WRITE)}
          *
          * <p> Security manager permission checks are performed in this factory
-         * method, when a {@code BodyHandler} is created. Care must be taken
+         * method, when the {@code BodyHandler} is created. Care must be taken
          * that the {@code BodyHandler} is not shared with untrusted code.
          *
          * @param file the file to store the body in
@@ -514,7 +514,7 @@
          * be written to, then the response will fail with an {@link IOException}.
          *
          * <p> Security manager permission checks are performed in this factory
-         * method, when a {@code BodyHandler} is created. Care must be taken
+         * method, when the {@code BodyHandler} is created. Care must be taken
          * that the {@code BodyHandler} is not shared with untrusted code.
          *
          * @param directory the directory to store the file in
@@ -962,7 +962,7 @@
          * the entire response has been read.
          *
          * <p> Security manager permission checks are performed in this factory
-         * method, when a {@code BodySubscriber} is created. Care must be taken
+         * method, when the {@code BodySubscriber} is created. Care must be taken
          * that the {@code BodyHandler} is not shared with untrusted code.
          *
          * @param file the file to store the body in
@@ -997,7 +997,7 @@
          * <p> Equivalent to: {@code asFile(file, CREATE, WRITE)}
          *
          * <p> Security manager permission checks are performed in this factory
-         * method, when a {@code BodySubscriber} is created. Care must be taken
+         * method, when the {@code BodySubscriber} is created. Care must be taken
          * that the {@code BodyHandler} is not shared with untrusted code.
          *
          * @param file the file to store the body in