diff --git a/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java index abdd7fc3..540e38d0 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java @@ -52,11 +52,7 @@ public class DocumentImpl implements Document{ List tagEntities = database.tagDao().findByIds(documentEntity.tagIds); ArrayList documentTags = new ArrayList<>(); for (TagEntity tagEntity : tagEntities) { - DocumentTag documentTag = new DocumentTag(); - documentTag.setId(tagEntity.id); - documentTag.setName(tagEntity.tagName); - documentTag.setColor(tagEntity.color); - documentTags.add(documentTag); + documentTags.add(new DocumentTag(tagEntity.id, tagEntity.tagName, tagEntity.color)); } // パス取得