From 3bab78883b3edd5f651bceeca1c7f8ee9c9932ba Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 16 Dec 2023 13:57:13 +0900 Subject: [PATCH] setRepository --- .../main/java/one/nem/lacerta/source/jgit/ActionRepo.java | 2 +- .../one/nem/lacerta/source/jgit/impl/ActionRepoImpl.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/src/main/java/one/nem/lacerta/source/jgit/ActionRepo.java b/source/src/main/java/one/nem/lacerta/source/jgit/ActionRepo.java index 1d33d3a7..6bb6f830 100644 --- a/source/src/main/java/one/nem/lacerta/source/jgit/ActionRepo.java +++ b/source/src/main/java/one/nem/lacerta/source/jgit/ActionRepo.java @@ -5,7 +5,7 @@ import org.eclipse.jgit.lib.Repository; public interface ActionRepo { // リポジトリをインスタンス変数に格納 - Repository setRepository(Repository repository); + void setRepository(Repository repository); // リポジトリ取得 Repository getRepository(); diff --git a/source/src/main/java/one/nem/lacerta/source/jgit/impl/ActionRepoImpl.java b/source/src/main/java/one/nem/lacerta/source/jgit/impl/ActionRepoImpl.java index f441cbf0..9399861a 100644 --- a/source/src/main/java/one/nem/lacerta/source/jgit/impl/ActionRepoImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/jgit/impl/ActionRepoImpl.java @@ -6,9 +6,11 @@ import one.nem.lacerta.source.jgit.ActionRepo; public class ActionRepoImpl implements ActionRepo{ + Repository repository; + @Override - public Repository setRepository(Repository repository) { - return null; + public void setRepository(Repository repository) { + this.repository = repository; } @Override