mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
リファクタリング
This commit is contained in:
1 file changed
+3
-5
@@ -195,13 +195,11 @@ public class LacertaVcsImpl implements LacertaVcs {
|
||||
}
|
||||
|
||||
private ArrayList<VcsLogEntity> getLogInRevs(ArrayList<VcsRevEntity> vcsRevEntities){
|
||||
ArrayList<VcsLogEntity> vcsLogEntities = new ArrayList<>();
|
||||
List<String> logIds = new ArrayList<>();
|
||||
vcsRevEntities.forEach(vcsRevEntity -> {
|
||||
List<String> logIds = new ArrayList<>(vcsRevEntity.logIds);
|
||||
vcsLogEntities.addAll(database.vcsLogDao().findByIds(logIds));
|
||||
logIds.addAll(vcsRevEntity.logIds);
|
||||
});
|
||||
|
||||
return vcsLogEntities;
|
||||
return new ArrayList<>(database.vcsLogDao().findByIds(logIds));
|
||||
}
|
||||
|
||||
private ArrayList<VcsLogEntity> getLogInRev(VcsRevEntity revEntity) {
|
||||
|
||||
Reference in new issue
Block a user