hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [31/50] [abbrv] httpcomponents-core git commit: Replace @exception with the more modern @throws.
Date Tue, 09 May 2017 19:58:23 GMT
Replace @exception with the more modern @throws.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk@1792677 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/7cdac6d8
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/7cdac6d8
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/7cdac6d8

Branch: refs/heads/trunk
Commit: 7cdac6d8288c7a7eeae060cf353fd9a4fc26a1de
Parents: eb2c139
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Tue Apr 25 22:55:17 2017 +0000
Committer: Gary D. Gregory <ggregory@apache.org>
Committed: Tue Apr 25 22:55:17 2017 +0000

----------------------------------------------------------------------
 .../hc/core5/http/impl/io/SessionInputBufferImpl.java     |  4 ++--
 .../hc/core5/http/impl/io/SessionOutputBufferImpl.java    |  2 +-
 .../org/apache/hc/core5/http/io/SessionInputBuffer.java   |  8 ++++----
 .../org/apache/hc/core5/http/io/SessionOutputBuffer.java  | 10 +++++-----
 .../hc/core5/http/nio/entity/ContentInputBuffer.java      |  2 +-
 .../hc/core5/http/nio/entity/ContentOutputBuffer.java     |  6 +++---
 .../java/org/apache/hc/core5/util/CharArrayBuffer.java    |  4 ++--
 7 files changed, 18 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/7cdac6d8/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/SessionInputBufferImpl.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/SessionInputBufferImpl.java
b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/SessionInputBufferImpl.java
index f6e4f7a..d5bd31e 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/SessionInputBufferImpl.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/SessionInputBufferImpl.java
@@ -232,7 +232,7 @@ public class SessionInputBufferImpl implements SessionInputBuffer {
      *
      * @param      charbuffer   the line buffer.
      * @return     one line of characters
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     @Override
     public int readLine(final CharArrayBuffer charbuffer, final InputStream inputStream)
throws IOException {
@@ -299,7 +299,7 @@ public class SessionInputBufferImpl implements SessionInputBuffer {
      * to CR-LF required by the HTTP specification.
      *
      * @return HTTP line as a string
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     private int lineFromLineBuffer(final CharArrayBuffer charbuffer)
             throws IOException {

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/7cdac6d8/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/SessionOutputBufferImpl.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/SessionOutputBufferImpl.java
b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/SessionOutputBufferImpl.java
index 8b9d30f..6a99672 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/SessionOutputBufferImpl.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/SessionOutputBufferImpl.java
@@ -183,7 +183,7 @@ public class SessionOutputBufferImpl implements SessionOutputBuffer {
      * This method uses CR-LF as a line delimiter.
      *
      * @param      charbuffer the buffer containing chars of the line.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     @Override
     public void writeLine(final CharArrayBuffer charbuffer, final OutputStream outputStream)
throws IOException {

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/7cdac6d8/httpcore5/src/main/java/org/apache/hc/core5/http/io/SessionInputBuffer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/io/SessionInputBuffer.java b/httpcore5/src/main/java/org/apache/hc/core5/http/io/SessionInputBuffer.java
index bd033a0..fe68b77 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/io/SessionInputBuffer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/io/SessionInputBuffer.java
@@ -85,7 +85,7 @@ public interface SessionInputBuffer {
      * @return     the total number of bytes read into the buffer, or
      *             {@code -1} if there is no more data because the end of
      *             the stream has been reached.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     int read(byte[] b, int off, int len, InputStream inputStream) throws IOException;
 
@@ -100,7 +100,7 @@ public interface SessionInputBuffer {
      * @return     the total number of bytes read into the buffer, or
      *             {@code -1} is there is no more data because the end of
      *             the stream has been reached.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     int read(byte[] b, InputStream inputStream) throws IOException;
 
@@ -115,7 +115,7 @@ public interface SessionInputBuffer {
      * @param      inputStream Input stream
      * @return     the next byte of data, or {@code -1} if the end of the
      *             stream is reached.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     int read(InputStream inputStream) throws IOException;
 
@@ -133,7 +133,7 @@ public interface SessionInputBuffer {
      * @param      buffer   the line buffer.
      * @param      inputStream Input stream
      * @return     one line of characters
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     int readLine(CharArrayBuffer buffer, InputStream inputStream) throws IOException;
 

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/7cdac6d8/httpcore5/src/main/java/org/apache/hc/core5/http/io/SessionOutputBuffer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/io/SessionOutputBuffer.java
b/httpcore5/src/main/java/org/apache/hc/core5/http/io/SessionOutputBuffer.java
index 2e724f5..3245bd4 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/io/SessionOutputBuffer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/io/SessionOutputBuffer.java
@@ -74,7 +74,7 @@ public interface SessionOutputBuffer {
      * @param      b     the data.
      * @param      off   the start offset in the data.
      * @param      len   the number of bytes to write.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     void write(byte[] b, int off, int len, OutputStream outputStream) throws IOException;
 
@@ -83,7 +83,7 @@ public interface SessionOutputBuffer {
      * to this session buffer.
      *
      * @param      b   the data.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     void write(byte[] b, OutputStream outputStream) throws IOException;
 
@@ -91,7 +91,7 @@ public interface SessionOutputBuffer {
      * Writes the specified byte to this session buffer.
      *
      * @param      b   the {@code byte}.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     void write(int b, OutputStream outputStream) throws IOException;
 
@@ -103,7 +103,7 @@ public interface SessionOutputBuffer {
      * specific implementations of this interface.
      *
      * @param      buffer   the buffer containing chars of the line.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     void writeLine(CharArrayBuffer buffer, OutputStream outputStream) throws IOException;
 
@@ -115,7 +115,7 @@ public interface SessionOutputBuffer {
      * stream, such bytes should immediately be written to their
      * intended destination.
      *
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     void flush(OutputStream outputStream) throws IOException;
 

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/7cdac6d8/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/ContentInputBuffer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/ContentInputBuffer.java
b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/ContentInputBuffer.java
index 16cab96..c730ab8 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/ContentInputBuffer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/ContentInputBuffer.java
@@ -67,7 +67,7 @@ public interface ContentInputBuffer {
      * @return     the total number of bytes read into the buffer, or
      *             {@code -1} if there is no more data because the end of
      *             the stream has been reached.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     int read(byte[] b, int off, int len) throws IOException;
 

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/7cdac6d8/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/ContentOutputBuffer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/ContentOutputBuffer.java
b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/ContentOutputBuffer.java
index e4b73e7..905f799 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/ContentOutputBuffer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/ContentOutputBuffer.java
@@ -60,7 +60,7 @@ public interface ContentOutputBuffer {
      * @param      b     the data.
      * @param      off   the start offset in the data.
      * @param      len   the number of bytes to write.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     void write(byte[] b, int off, int len) throws IOException;
 
@@ -68,13 +68,13 @@ public interface ContentOutputBuffer {
      * Writes the specified byte to this buffer.
      *
      * @param      b   the {@code byte}.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     void write(int b) throws IOException;
 
     /**
      * Indicates the content has been fully written.
-     * @exception  IOException  if an I/O error occurs.
+     * @throws  IOException  if an I/O error occurs.
      */
     void writeCompleted() throws IOException;
 

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/7cdac6d8/httpcore5/src/main/java/org/apache/hc/core5/util/CharArrayBuffer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/util/CharArrayBuffer.java b/httpcore5/src/main/java/org/apache/hc/core5/util/CharArrayBuffer.java
index d7eeee0..79eab23 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/util/CharArrayBuffer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/util/CharArrayBuffer.java
@@ -410,7 +410,7 @@ public final class CharArrayBuffer implements CharSequence, Serializable
{
      * @param      beginIndex   the beginning index, inclusive.
      * @param      endIndex     the ending index, exclusive.
      * @return     the specified substring.
-     * @exception  StringIndexOutOfBoundsException  if the
+     * @throws  StringIndexOutOfBoundsException  if the
      *             {@code beginIndex} is negative, or
      *             {@code endIndex} is larger than the length of this
      *             buffer, or {@code beginIndex} is larger than
@@ -443,7 +443,7 @@ public final class CharArrayBuffer implements CharSequence, Serializable
{
      * @param      beginIndex   the beginning index, inclusive.
      * @param      endIndex     the ending index, exclusive.
      * @return     the specified substring.
-     * @exception  IndexOutOfBoundsException  if the
+     * @throws  IndexOutOfBoundsException  if the
      *             {@code beginIndex} is negative, or
      *             {@code endIndex} is larger than the length of this
      *             buffer, or {@code beginIndex} is larger than


Mime
View raw message