mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
リファクタリング
This commit is contained in:
parent
daab41620f
commit
b58e80f7ea
|
@ -195,13 +195,11 @@ public class LacertaVcsImpl implements LacertaVcs {
|
||||||
}
|
}
|
||||||
|
|
||||||
private ArrayList<VcsLogEntity> getLogInRevs(ArrayList<VcsRevEntity> vcsRevEntities){
|
private ArrayList<VcsLogEntity> getLogInRevs(ArrayList<VcsRevEntity> vcsRevEntities){
|
||||||
ArrayList<VcsLogEntity> vcsLogEntities = new ArrayList<>();
|
List<String> logIds = new ArrayList<>();
|
||||||
vcsRevEntities.forEach(vcsRevEntity -> {
|
vcsRevEntities.forEach(vcsRevEntity -> {
|
||||||
List<String> logIds = new ArrayList<>(vcsRevEntity.logIds);
|
logIds.addAll(vcsRevEntity.logIds);
|
||||||
vcsLogEntities.addAll(database.vcsLogDao().findByIds(logIds));
|
|
||||||
});
|
});
|
||||||
|
return new ArrayList<>(database.vcsLogDao().findByIds(logIds));
|
||||||
return vcsLogEntities;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private ArrayList<VcsLogEntity> getLogInRev(VcsRevEntity revEntity) {
|
private ArrayList<VcsLogEntity> getLogInRev(VcsRevEntity revEntity) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user