This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-crypto.git
The following commit(s) were added to refs/heads/master by this push: new 51fa279 Javadoc fix (Java 11): Replace <tt>Foo</tt> with {@code Foo} 51fa279 is described below commit 51fa279fd5f1168e10f299b3c079da6069843cb7 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jul 31 11:41:49 2020 -0400 Javadoc fix (Java 11): Replace <tt>Foo</tt> with {@code Foo} --- .../org/apache/commons/crypto/stream/CryptoInputStream.java | 4 ++-- .../org/apache/commons/crypto/stream/CryptoOutputStream.java | 2 +- .../org/apache/commons/crypto/stream/CtrCryptoInputStream.java | 4 ++-- .../java/org/apache/commons/crypto/stream/input/Input.java | 10 +++++----- .../java/org/apache/commons/crypto/stream/output/Output.java | 10 +++++----- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java b/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java index 66aa0c1..0a74578 100644 --- a/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java +++ b/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java @@ -388,7 +388,7 @@ public class CryptoInputStream extends InputStream implements /** * Overrides the {@link java.nio.channels.Channel#isOpen()}. * - * @return <tt>true</tt> if, and only if, this channel is open. + * @return {@code true} if, and only if, this channel is open. */ @Override public boolean isOpen() { @@ -401,7 +401,7 @@ public class CryptoInputStream extends InputStream implements * sequence of bytes from this channel into the given buffer. * * @param dst The buffer into which bytes are to be transferred. - * @return The number of bytes read, possibly zero, or <tt>-1</tt> if the + * @return The number of bytes read, possibly zero, or {@code -1} if the * channel has reached end-of-stream. * @throws IOException if an I/O error occurs. */ diff --git a/src/main/java/org/apache/commons/crypto/stream/CryptoOutputStream.java b/src/main/java/org/apache/commons/crypto/stream/CryptoOutputStream.java index e9228c4..343f5eb 100644 --- a/src/main/java/org/apache/commons/crypto/stream/CryptoOutputStream.java +++ b/src/main/java/org/apache/commons/crypto/stream/CryptoOutputStream.java @@ -284,7 +284,7 @@ public class CryptoOutputStream extends OutputStream implements * Overrides the {@link java.nio.channels.Channel#isOpen()}. Tells whether or not this channel * is open. * - * @return <tt>true</tt> if, and only if, this channel is open + * @return {@code true} if, and only if, this channel is open */ @Override public boolean isOpen() { diff --git a/src/main/java/org/apache/commons/crypto/stream/CtrCryptoInputStream.java b/src/main/java/org/apache/commons/crypto/stream/CtrCryptoInputStream.java index d27837d..5d79dac 100644 --- a/src/main/java/org/apache/commons/crypto/stream/CtrCryptoInputStream.java +++ b/src/main/java/org/apache/commons/crypto/stream/CtrCryptoInputStream.java @@ -295,7 +295,7 @@ public class CtrCryptoInputStream extends CryptoInputStream { * sequence of bytes from this channel into the given buffer. * * @param buf The buffer into which bytes are to be transferred. - * @return The number of bytes read, possibly zero, or <tt>-1</tt> if the + * @return The number of bytes read, possibly zero, or {@code -1} if the * channel has reached end-of-stream. * @throws IOException if an I/O error occurs. */ @@ -441,7 +441,7 @@ public class CtrCryptoInputStream extends CryptoInputStream { /** * Does the decryption using inBuffer as input and buf as output. Upon * return, inBuffer is cleared; the buf's position will be equal to - * <i>p</i> <tt>+</tt> <i>n</i> where <i>p</i> is the position + * <i>p</i> {@code +} <i>n</i> where <i>p</i> is the position * before decryption, <i>n</i> is the number of bytes decrypted. The buf's * limit will not have changed. * diff --git a/src/main/java/org/apache/commons/crypto/stream/input/Input.java b/src/main/java/org/apache/commons/crypto/stream/input/Input.java index 54c17ae..28ec22c 100644 --- a/src/main/java/org/apache/commons/crypto/stream/input/Input.java +++ b/src/main/java/org/apache/commons/crypto/stream/input/Input.java @@ -34,17 +34,17 @@ public interface Input { * <p> * An attempt is made to read up to <i>r</i> bytes from the input, where * <i>r</i> is the number of bytes remaining in the buffer, that is, - * <tt>dst.remaining()</tt>, at the moment this method is invoked. + * {@code dst.remaining()}, at the moment this method is invoked. * * <p> - * Suppose that a byte sequence of length <i>n</i> is read, where <tt>0</tt> - * <tt><=</tt> <i>n</i> <tt><=</tt> <i>r</i>. + * Suppose that a byte sequence of length <i>n</i> is read, where {@code 0} + * {@code <=} <i>n</i> {@code <=} <i>r</i>. * This byte sequence will be transferred into the buffer so that the first * byte in the sequence is at index <i>p</i> and the last byte is at index - * <i>p</i> <tt>+</tt> <i>n</i> <tt>-</tt> <tt>1</tt>, + * <i>p</i> {@code +} <i>n</i> {@code -} {@code 1}, * where <i>p</i> is the buffer's position at the moment this method is * invoked. Upon return the buffer's position will be equal to - * <i>p</i> <tt>+</tt> <i>n</i>; its limit will not have changed. + * <i>p</i> {@code +} <i>n</i>; its limit will not have changed. * * @param dst The buffer into which bytes are to be transferred. * @return the total number of bytes read into the buffer, or diff --git a/src/main/java/org/apache/commons/crypto/stream/output/Output.java b/src/main/java/org/apache/commons/crypto/stream/output/Output.java index be086f3..ec024c0 100644 --- a/src/main/java/org/apache/commons/crypto/stream/output/Output.java +++ b/src/main/java/org/apache/commons/crypto/stream/output/Output.java @@ -35,17 +35,17 @@ public interface Output { * <p> * An attempt is made to write up to <i>r</i> bytes to the channel, where * <i>r</i> is the number of bytes remaining in the buffer, that is, - * <tt>src.remaining()</tt>, at the moment this method is invoked. + * {@code src.remaining()}, at the moment this method is invoked. * * <p> * Suppose that a byte sequence of length <i>n</i> is written, where - * <tt>0</tt> <tt><=</tt> <i>n</i> <tt><=</tt> + * {@code 0} {@code <=} <i>n</i> {@code <=} * <i>r</i>. This byte sequence will be transferred from the buffer * starting at index <i>p</i>, where <i>p</i> is the buffer's position at * the moment this method is invoked; the index of the last byte written - * will be <i>p</i> <tt>+</tt> <i>n</i> <tt>-</tt> - * <tt>1</tt>. Upon return the buffer's position will be equal to - * <i>p</i> <tt>+</tt> <i>n</i>; its limit will not have changed. + * will be <i>p</i> {@code +} <i>n</i> {@code -} + * {@code 1}. Upon return the buffer's position will be equal to + * <i>p</i> {@code +} <i>n</i>; its limit will not have changed. * * @param src The buffer from which bytes are to be retrieved. *