]> source.dussan.org Git - jgit.git/commitdiff
Clean up Init API 58/2058/1
authorChris Aniszczyk <caniszczyk@gmail.com>
Tue, 7 Dec 2010 15:13:57 +0000 (09:13 -0600)
committerChris Aniszczyk <caniszczyk@gmail.com>
Tue, 7 Dec 2010 15:13:57 +0000 (09:13 -0600)
Static accessors should come before a constructor.

Change-Id: Iee1051ce4f2038f19a08741e7a3a33f06a97a3c0
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java

index 8564570d3492072ae69aed46741747eb35ab5edc..f4ed2a7927751b7791be66ece7cf7b5f25afa039 100644 (file)
@@ -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 <a
+        *      href="http://www.kernel.org/pub/software/scm/git/docs/git-init.html"
+        *      >Git documentation about init</a>
+        * @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 <a
-        *      href="http://www.kernel.org/pub/software/scm/git/docs/git-init.html"
-        *      >Git documentation about init</a>
-        * @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
         */