From 1d11641b8a0558b33996901b8c72222a07f1de11 Mon Sep 17 00:00:00 2001 From: isanghaessi Date: Wed, 16 Aug 2023 22:47:50 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20LevelInformationProtoUtil=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - clear 순서로 인해 세팅안되는 부분 수정. --- .../levelinformation/LevelInformationProtoUtil.java | 4 ++-- .../startrail/common/protocolbuffer/mind/MindProtoUtil.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/beside/startrail/common/protocolbuffer/levelinformation/LevelInformationProtoUtil.java b/src/main/java/com/beside/startrail/common/protocolbuffer/levelinformation/LevelInformationProtoUtil.java index 659c218..8f03839 100644 --- a/src/main/java/com/beside/startrail/common/protocolbuffer/levelinformation/LevelInformationProtoUtil.java +++ b/src/main/java/com/beside/startrail/common/protocolbuffer/levelinformation/LevelInformationProtoUtil.java @@ -23,10 +23,10 @@ public static LevelInformationProto toLevelInformationProto( LevelInformationProto.Builder builder = LevelInformationProto .newBuilder() + .clear() .setTotal(total) .setGiven(given) - .setTaken(taken) - .clear(); + .setTaken(taken); if (Objects.nonNull(relationshipLevel.getLevel())) { builder.setLevel(relationshipLevel.getLevel()); diff --git a/src/main/java/com/beside/startrail/common/protocolbuffer/mind/MindProtoUtil.java b/src/main/java/com/beside/startrail/common/protocolbuffer/mind/MindProtoUtil.java index 6129d4c..1706b9f 100644 --- a/src/main/java/com/beside/startrail/common/protocolbuffer/mind/MindProtoUtil.java +++ b/src/main/java/com/beside/startrail/common/protocolbuffer/mind/MindProtoUtil.java @@ -123,7 +123,8 @@ public static Mind toMindWithImageLink( public static MindPutResponseProto toMindPutResponseProto( Mind relationship) { if (Objects.isNull(relationship)) { - return MindPutResponseProto.newBuilder() + return MindPutResponseProto + .newBuilder() .clear() .build(); }