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 <chris@puppetlabs.com>
This commit is contained in:
parent
e7d86e1939
commit
ad16eaac6e
|
@ -204,7 +204,7 @@ public void setUp() throws Exception {
|
||||||
* @throws IllegalStateException
|
* @throws IllegalStateException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public String indexState(Repository repo, int includedOptions)
|
public static String indexState(Repository repo, int includedOptions)
|
||||||
throws IllegalStateException, IOException {
|
throws IllegalStateException, IOException {
|
||||||
DirCache dc = repo.readDirCache();
|
DirCache dc = repo.readDirCache();
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
Loading…
Reference in New Issue