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){
|
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) {
|
||||||
|
|||||||
Reference in new issue
Block a user