setRepository

This commit is contained in:
r-ca 2023-12-16 13:57:13 +09:00
parent ac3523780f
commit 3bab78883b
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import org.eclipse.jgit.lib.Repository;
public interface ActionRepo { public interface ActionRepo {
// リポジトリをインスタンス変数に格納 // リポジトリをインスタンス変数に格納
Repository setRepository(Repository repository); void setRepository(Repository repository);
// リポジトリ取得 // リポジトリ取得
Repository getRepository(); Repository getRepository();

View File

@ -6,9 +6,11 @@ import one.nem.lacerta.source.jgit.ActionRepo;
public class ActionRepoImpl implements ActionRepo{ public class ActionRepoImpl implements ActionRepo{
Repository repository;
@Override @Override
public Repository setRepository(Repository repository) { public void setRepository(Repository repository) {
return null; this.repository = repository;
} }
@Override @Override