From f6b9b392e7c31cee6954aedc12001de3c17731a3 Mon Sep 17 00:00:00 2001 From: Demetr Starshov Date: Wed, 2 Jun 2021 16:19:39 -0700 Subject: [PATCH] Fixing visibility for HostEntry constructors. HostEntry class was public with empty constructor, so adding constructors with default visibility actually reduced visibility of constructor. Change-Id: I4c996c0559102084946ba49a71afe10dda5e0f95 --- .../internal/transport/ssh/OpenSshConfigFile.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFile.java index 6fbb4c5a0..228c25f0a 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFile.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFile.java @@ -482,12 +482,18 @@ public static class HostEntry implements SshConfigStore.HostConfig { private final List patterns; - // Constructor used to build the merged entry; never matches anything - HostEntry() { + /** + * Constructor used to build the merged entry; never matches anything + */ + public HostEntry() { this.patterns = Collections.emptyList(); } - HostEntry(List patterns) { + /** + * @param patterns + * to be used in matching against host name. + */ + public HostEntry(List patterns) { this.patterns = patterns; }