From ad16eaac6ebc6daa994a6dbdccb687094485c36f Mon Sep 17 00:00:00 2001 From: Chris Price Date: Tue, 7 Jul 2015 12:43:56 +0100 Subject: [PATCH] Change `indexState` to static method 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 --- .../src/org/eclipse/jgit/junit/RepositoryTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepositoryTestCase.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepositoryTestCase.java index f9eb7b4ea..17eb6240a 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepositoryTestCase.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepositoryTestCase.java @@ -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();