Fix javadoc errors
diff --git a/sshd-common/src/main/java/org/apache/sshd/client/config/hosts/HostConfigEntry.java b/sshd-common/src/main/java/org/apache/sshd/client/config/hosts/HostConfigEntry.java
index 6263c36..f810472 100644
--- a/sshd-common/src/main/java/org/apache/sshd/client/config/hosts/HostConfigEntry.java
+++ b/sshd-common/src/main/java/org/apache/sshd/client/config/hosts/HostConfigEntry.java
@@ -466,7 +466,7 @@
* @param props The {@link Map} of properties - ignored if {@code null}/empty
* @return the target appender
* @throws IOException
- * @see #appendNonEmptyProperty(Appendable, String, Object)
+ * @see {@link #appendNonEmptyProperty(Appendable, String, List)}
*/
public static <A extends Appendable> A appendNonEmptyProperties(A sb, Map<String, List<String>> props) throws IOException {
if (MapEntryUtils.isEmpty(props)) {
@@ -498,7 +498,7 @@
* broken down to <U>individual</U> lines - one per value.
* @return The target appender after having appended (or not) the value
* @throws IOException
- * @see #appendNonEmptyValues(Appendable, String, Object...)
+ * @see {@link #appendNonEmptyProperties(Appendable, Map)}
*/
public static <A extends Appendable> A appendNonEmptyProperty(A sb, String name, List<String> value) throws IOException {
String key = ValidateUtils.checkNotNullAndNotEmpty(name, "No property name");
diff --git a/sshd-common/src/main/java/org/apache/sshd/common/config/keys/KeyUtils.java b/sshd-common/src/main/java/org/apache/sshd/common/config/keys/KeyUtils.java
index 7522a14..2babf02 100644
--- a/sshd-common/src/main/java/org/apache/sshd/common/config/keys/KeyUtils.java
+++ b/sshd-common/src/main/java/org/apache/sshd/common/config/keys/KeyUtils.java
@@ -355,7 +355,6 @@
* supports}
*
* @param decoder The (never {@code null}) {@link PublicKeyEntryDecoder<?, ?> decoder} to register
- * @see #registerPublicKeyEntryDecoderForKeyType(String, PublicKeyEntryDecoder<?, ?>)
*/
public static void registerPublicKeyEntryDecoder(PublicKeyEntryDecoder<?, ?> decoder) {
Objects.requireNonNull(decoder, "No decoder specified");
@@ -437,7 +436,6 @@
/**
* @param key The {@link Key} (public or private) - ignored if {@code null}
* @return The registered {@link PublicKeyEntryDecoder<?, ?>} for this key or {code null} if no match found
- * @see #getPublicKeyEntryDecoder(Class)
*/
public static PublicKeyEntryDecoder<?, ?> getPublicKeyEntryDecoder(Key key) {
if (key == null) {
diff --git a/sshd-common/src/main/java/org/apache/sshd/common/config/keys/loader/openssh/OpenSSHKeyPairResourceParser.java b/sshd-common/src/main/java/org/apache/sshd/common/config/keys/loader/openssh/OpenSSHKeyPairResourceParser.java
index e4de11a..107849c 100644
--- a/sshd-common/src/main/java/org/apache/sshd/common/config/keys/loader/openssh/OpenSSHKeyPairResourceParser.java
+++ b/sshd-common/src/main/java/org/apache/sshd/common/config/keys/loader/openssh/OpenSSHKeyPairResourceParser.java
@@ -388,7 +388,6 @@
/**
* @param key The {@link Key} (public or private) - ignored if {@code null}
* @return The registered {@link PrivateKeyEntryDecoder} for this key or {code null} if no match found
- * @see #getPrivateKeyEntryDecoder(Class)
*/
public static PrivateKeyEntryDecoder<?, ?> getPrivateKeyEntryDecoder(Key key) {
if (key == null) {
diff --git a/sshd-core/src/main/java/org/apache/sshd/common/channel/Window.java b/sshd-core/src/main/java/org/apache/sshd/common/channel/Window.java
index c5dd819..00d7431 100644
--- a/sshd-core/src/main/java/org/apache/sshd/common/channel/Window.java
+++ b/sshd-core/src/main/java/org/apache/sshd/common/channel/Window.java
@@ -79,7 +79,7 @@
*
* <pre>
* long toConsume = ...;
- * if (toConsume < window.getSize()) {
+ * if (toConsume < window.getSize()) {
* window.consume(toConsume); // Might throw an exception if some other thread consumed some space already
* }
* </pre>
diff --git a/sshd-core/src/main/java/org/apache/sshd/common/session/ConnectionService.java b/sshd-core/src/main/java/org/apache/sshd/common/session/ConnectionService.java
index 67bb13f..6e4bbd9 100644
--- a/sshd-core/src/main/java/org/apache/sshd/common/session/ConnectionService.java
+++ b/sshd-core/src/main/java/org/apache/sshd/common/session/ConnectionService.java
@@ -120,11 +120,11 @@
* {@link Buffer} to the given {@link ReplyHandler}, which may execute in a different thread.
*
* <dl>
- * <dt>want-reply == true && replyHandler != null</dt>
+ * <dt>want-reply == true && replyHandler != null</dt>
* <dd>The returned future is fulfilled with {@code null} when the request was sent, or with an exception if the
* request could not be sent. The {@code replyHandler} is invoked once the reply is received, with the SSH reply
* code and the data received.</dd>
- * <dt>want-reply == true && replyHandler == null</dt>
+ * <dt>want-reply == true && replyHandler == null</dt>
* <dd>The returned future is fulfilled with an exception if the request could not be sent, or a failure reply was
* received. If a success reply was received, the future is fulfilled with the received data buffer.</dd>
* <dt>want-reply == false</dt>
diff --git a/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java b/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java
index 6417b87..ee91402 100644
--- a/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java
+++ b/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java
@@ -392,7 +392,6 @@
* @param buffer The {@link Buffer} containing the packet - it may be re-used to generate the response once
* request has been decoded
* @throws Exception if an exception occurs while handling this packet.
- * @see #doHandleMessage(Buffer)
*/
protected void handleMessage(Buffer buffer) throws Exception {
int cmd = buffer.getUByte();