mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
ArrayListやめた
This commit is contained in:
parent
d575dcdb10
commit
fe843e0429
|
@ -1,6 +1,7 @@
|
||||||
package one.nem.lacerta.data.impl;
|
package one.nem.lacerta.data.impl;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
|
@ -46,7 +47,7 @@ public class DocumentImpl implements Document{
|
||||||
DocumentEntity documentEntity = database.documentDao().findById(id);
|
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<>();
|
ArrayList<DocumentTag> documentTags = new ArrayList<>();
|
||||||
for (TagEntity tagEntity : tagEntities) {
|
for (TagEntity tagEntity : tagEntities) {
|
||||||
DocumentTag documentTag = new DocumentTag();
|
DocumentTag documentTag = new DocumentTag();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user