]> source.dussan.org Git - jgit.git/commitdiff
Change `indexState` to static method 14/51614/2
authorChris Price <chris@puppetlabs.com>
Tue, 7 Jul 2015 11:43:56 +0000 (12:43 +0100)
committerChristian Halstrick <christian.halstrick@sap.com>
Thu, 9 Jul 2015 22:56:58 +0000 (00:56 +0200)
The `indexState` method is no longer referring to any
member variables from the class, so it can be made static.

Bug: 436200
Change-Id: I013316de5c373417ea758ca6e17da29209fead53
Signed-off-by: Chris Price <chris@puppetlabs.com>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepositoryTestCase.java

index f9eb7b4eacf19a8faddd523b8254de1220d160da..17eb6240a0f5744150bbcc8dc366da9a0b414723 100644 (file)
@@ -204,7 +204,7 @@ public abstract class RepositoryTestCase extends LocalDiskRepositoryTestCase {
         * @throws IllegalStateException
         * @throws IOException
         */
-       public String indexState(Repository repo, int includedOptions)
+       public static String indexState(Repository repo, int includedOptions)
                        throws IllegalStateException, IOException {
                DirCache dc = repo.readDirCache();
                StringBuilder sb = new StringBuilder();