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/mina-sshd.git
commit 9fccda8f0151f307658404c130ea831102a45260 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu May 30 10:51:57 2024 -0400 Use diamonds --- .../java/org/apache/sshd/client/config/hosts/HostConfigEntry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 bd65e437b..947c8e82f 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 @@ -716,7 +716,7 @@ public class HostConfigEntry extends HostPatternsHolder implements MutableUserHo */ public static List<HostConfigEntry> readHostConfigEntries(BufferedReader rdr) throws IOException { HostConfigEntry curEntry = null; - List<HostConfigEntry> entries = new ArrayList<HostConfigEntry>(); + List<HostConfigEntry> entries = new ArrayList<>(); int lineNumber = 1; for (String line = rdr.readLine(); line != null; line = rdr.readLine(), lineNumber++) { @@ -748,7 +748,7 @@ public class HostConfigEntry extends HostPatternsHolder implements MutableUserHo if (pos > 0) { key = line.substring(0, pos).trim(); value = line.substring(pos + 1); - valsList = new ArrayList<String>(1); + valsList = new ArrayList<>(1); valsList.add(value); } else { pos = line.indexOf(' ');