リファクタリング

This commit is contained in:
r-ca committed 2024-01-24 17:56:26 +09:00
1 parent 8c4e651a79
commit 929ba7347c
1 file changed
+2 -2
@@ -215,8 +215,8 @@ public class LacertaVcsImpl implements LacertaVcs {
@Override
public CompletableFuture<ArrayList<String>> getDocumentPagePathListRev(String revId) {
return CompletableFuture.supplyAsync(() -> {
ArrayList<VcsRevEntity> vcsRevEntities = getRevBeforeTargetIdAsync(revId).join();
ArrayList<VcsLogEntity> vcsLogEntities = getLogInRevs(vcsRevEntities).join();
logger.debug(TAG, "getDocumentPagePathListRev");
ArrayList<VcsLogEntity> vcsLogEntities = getRevBeforeTargetIdAsync(revId).thenCompose(this::getLogInRevs).join();
// finalで宣言しないとLambda式内で扱えないので
final ArrayList<String>[] fileNameList = new ArrayList[]{new ArrayList<>()};