ArrayListやめた

This commit is contained in:
ろむねこ 2023-12-14 11:25:44 +09:00
parent d575dcdb10
commit fe843e0429
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -1,6 +1,7 @@
package one.nem.lacerta.data.impl;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
@ -46,7 +47,7 @@ public class DocumentImpl implements Document{
DocumentEntity documentEntity = database.documentDao().findById(id);
// タグデータ作成
ArrayList<TagEntity> tagEntities = database.tagDao().findByIds(documentEntity.tagIds);
List<TagEntity> tagEntities = database.tagDao().findByIds(documentEntity.tagIds);
ArrayList<DocumentTag> documentTags = new ArrayList<>();
for (TagEntity tagEntity : tagEntities) {
DocumentTag documentTag = new DocumentTag();