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