From db8cc4c84e2f304cad11d69a74c6290ffca62d4f Mon Sep 17 00:00:00 2001 From: Chris Aniszczyk Date: Tue, 7 Dec 2010 09:13:57 -0600 Subject: [PATCH] Clean up Init API Static accessors should come before a constructor. Change-Id: Iee1051ce4f2038f19a08741e7a3a33f06a97a3c0 Signed-off-by: Chris Aniszczyk --- .../src/org/eclipse/jgit/api/Git.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java index 8564570d3..f4ed2a792 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java @@ -79,6 +79,19 @@ public class Git { /** The git repository this class is interacting with */ private final Repository repo; + /** + * Returns a command object to execute a {@code init} command + * + * @see Git documentation about init + * @return a {@link InitCommand} used to collect all optional parameters and + * to finally execute the {@code init} command + */ + public static InitCommand init() { + return new InitCommand(); + } + /** * Constructs a new {@link Git} object which can interact with the specified * git repository. All command classes returned by methods of this class @@ -282,19 +295,6 @@ public class Git { return new CheckoutCommand(repo); } - /** - * Returns a command object to execute a {@code init} command - * - * @see Git documentation about init - * @return a {@link InitCommand} used to collect all optional parameters and - * to finally execute the {@code init} command - */ - static public InitCommand init() { - return new InitCommand(); - } - /** * @return the git repository this class is interacting with */