From 5f6d4df5b2f4ec969a8eda73e7d2af95378ce0da Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 16 Dec 2023 16:22:31 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=B3=E3=82=B9=E3=83=88=E3=83=A9?= =?UTF-8?q?=E3=82=AF=E3=82=BF=E3=82=92=E4=BD=BF=E3=81=86=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/one/nem/lacerta/data/impl/DocumentImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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)); } // パス取得