diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2021-09-30 09:31:12 +0200 |
---|---|---|
committer | Thomas Wolf <thomas.wolf@paranor.ch> | 2021-09-30 09:31:12 +0200 |
commit | bdba9edd5f1212aee33a5bb713c27b80a72617cb (patch) | |
tree | 6ea092d9b6912d269d488218e917d7e4704efede /org.eclipse.jgit.ssh.apache | |
parent | 3d86d3e810d3c851d798259209eebfdcd0367516 (diff) | |
download | jgit-bdba9edd5f1212aee33a5bb713c27b80a72617cb.tar.gz jgit-bdba9edd5f1212aee33a5bb713c27b80a72617cb.zip |
Remove redundant type arguments
In Java 11 type arguments for anonymous subclasses can be inferred
and don't need to be specified. This resolves a number of compiler
warnings.
Change-Id: I55eff3babb7628aa0627085e65a1b45eb12c2cd3
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.ssh.apache')
-rw-r--r-- | org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitSshClient.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitSshClient.java b/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitSshClient.java index ae12c2028d..32819aea21 100644 --- a/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitSshClient.java +++ b/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitSshClient.java @@ -223,7 +223,7 @@ public class JGitSshClient extends SshClient { private SshFutureListener<IoConnectFuture> createConnectCompletionListener( ConnectFuture connectFuture, String username, InetSocketAddress address, HostConfigEntry hostConfig) { - return new SshFutureListener<IoConnectFuture>() { + return new SshFutureListener<>() { @Override public void operationComplete(IoConnectFuture future) { @@ -406,7 +406,7 @@ public class JGitSshClient extends SshClient { @Override public Iterable<KeyPair> loadKeys(SessionContext context) { - return () -> new Iterator<KeyPair>() { + return () -> new Iterator<>() { private Iterator<KeyIdentityProvider> factories = providers .iterator(); |