git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [JGIT PATCH 3/3] Extracted AWT-independent superclass from DefaultSshSessionFactory

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 17, 2009, 15:16 UTC
Message-ID
<20090417151645.GQ23604@spearce.org>
In-Reply-To
<85647ef50904160711w6fbcfcedk2b9a9e1740a4ddd3@mail.gmail.com>
Constantine Plotnikov <constantine.plotnikov@gmail.com> wrote:
Show 6 quoted lines
> The part of DefaultSshSessionFactory that does not depend on
> AWT was refactored to the super class SshConfigSessionFactory.
> The parts of DefaultSshSessionFactory that were used only by
> the OpenSshConfig class were moved to that class.
> 
> Signed-off-by: Constantine Plotnikov <constantine.plotnikov@gmail.com>
Thanks. I applied this, but with a couple of style nitpicks corrected.
Show 9 quoted lines
> --- a/org.spearce.jgit/src/org/spearce/jgit/transport/OpenSshConfig.java
> +++ b/org.spearce.jgit/src/org/spearce/jgit/transport/OpenSshConfig.java
> @@ -95,6 +97,9 @@ public static OpenSshConfig get() {
>  	/** Cached entries read out of the configuration file. */
>  	private Map<String, Host> hosts;
> 
> +	/** IANA assigned port number for SSH. */
> +	static final int SSH_PORT = 22;
> +

Static constants should be at the top of the class, not after the instance members.

-- 
Shawn.
Previous: Constantine Plotnikov
Message 2 of 2 in “Extracted AWT-independent superclass from DefaultSshSessionFactory”
  1. 3/3 Extracted AWT-independent superclass from DefaultSshSessionFactoryConstantine Plotnikov, Apr 16, 2009
  2. Shawn O. PearceApr 17, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.