diff --git a/src/main/java/com/hierynomus/sshj/backport/Sockets.java b/src/main/java/com/hierynomus/sshj/backport/Sockets.java index 3f807a59..7b3f828a 100644 --- a/src/main/java/com/hierynomus/sshj/backport/Sockets.java +++ b/src/main/java/com/hierynomus/sshj/backport/Sockets.java @@ -9,7 +9,7 @@ public class Sockets { /** * Java 7 and up have Socket implemented as Closeable, whereas Java6 did not have this inheritance. * @param socket The socket to wrap as Closeable - * @return + * @return The (potentially wrapped) Socket as a Closeable. */ public static Closeable asCloseable(final Socket socket) { if (Closeable.class.isAssignableFrom(socket.getClass())) { diff --git a/src/main/java/net/schmizz/sshj/SocketClient.java b/src/main/java/net/schmizz/sshj/SocketClient.java index 7aeee4f0..42f4b7a9 100644 --- a/src/main/java/net/schmizz/sshj/SocketClient.java +++ b/src/main/java/net/schmizz/sshj/SocketClient.java @@ -61,7 +61,7 @@ public abstract class SocketClient { * @param port The port to connect to. * @param proxy The proxy to connect via. * @deprecated This method will be removed after v0.12.0. If you want to connect via a proxy, you can do this by injecting a {@link javax.net.SocketFactory} - * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket(java.net.Proxy)} constructor. + * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket#Socket(java.net.Proxy)} constructor. */ @Deprecated public void connect(InetAddress host, int port, Proxy proxy) throws IOException { @@ -86,7 +86,7 @@ public abstract class SocketClient { * @param port The port to connect to. * @param proxy The proxy to connect via. * @deprecated This method will be removed after v0.12.0. If you want to connect via a proxy, you can do this by injecting a {@link javax.net.SocketFactory} - * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket(java.net.Proxy)} constructor. + * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket#Socket(java.net.Proxy)} constructor. */ @Deprecated public void connect(String hostname, int port, Proxy proxy) throws IOException { @@ -120,7 +120,7 @@ public abstract class SocketClient { * @param host The host address to connect to. * @param proxy The proxy to connect via. * @deprecated This method will be removed after v0.12.0. If you want to connect via a proxy, you can do this by injecting a {@link javax.net.SocketFactory} - * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket(java.net.Proxy)} constructor. + * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket#Socket(java.net.Proxy)} constructor. */ @Deprecated public void connect(InetAddress host, Proxy proxy) throws IOException { @@ -132,7 +132,7 @@ public abstract class SocketClient { * @param hostname The host name to connect to. * @param proxy The proxy to connect via. * @deprecated This method will be removed after v0.12.0. If you want to connect via a proxy, you can do this by injecting a {@link javax.net.SocketFactory} - * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket(java.net.Proxy)} constructor. + * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket#Socket(java.net.Proxy)} constructor. */ @Deprecated public void connect(String hostname, Proxy proxy) throws IOException { diff --git a/src/main/java/net/schmizz/sshj/connection/ConnectionImpl.java b/src/main/java/net/schmizz/sshj/connection/ConnectionImpl.java index 494acc5f..7716ce65 100644 --- a/src/main/java/net/schmizz/sshj/connection/ConnectionImpl.java +++ b/src/main/java/net/schmizz/sshj/connection/ConnectionImpl.java @@ -66,7 +66,7 @@ public class ConnectionImpl * * @param config the ssh config * @param trans transport layer - * @param keepAlive + * @param keepAlive the keep alive provider */ public ConnectionImpl(Transport trans, KeepAliveProvider keepAlive) { super("ssh-connection", trans);