mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
コンストラクタを使うように修正
This commit is contained in:
parent
95dafdebe5
commit
5f6d4df5b2
|
@ -52,11 +52,7 @@ public class DocumentImpl implements Document{
|
||||||
List<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();
|
documentTags.add(new DocumentTag(tagEntity.id, tagEntity.tagName, tagEntity.color));
|
||||||
documentTag.setId(tagEntity.id);
|
|
||||||
documentTag.setName(tagEntity.tagName);
|
|
||||||
documentTag.setColor(tagEntity.color);
|
|
||||||
documentTags.add(documentTag);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// パス取得
|
// パス取得
|
||||||
|
|
Loading…
Reference in New Issue
Block a user