瀏覽代碼

[공통][Bug] Event 생성자 수정

hyodong.min 7 年之前
父節點
當前提交
d10f77a635
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      app/src/main/java/kr/co/zumo/app/lifeplus/view/Event.java

+ 6 - 6
app/src/main/java/kr/co/zumo/app/lifeplus/view/Event.java

@@ -93,11 +93,11 @@ public class Event {
   private final String string;
   private final String json;
 
-  private Event(@Event.ID int eventId, int integer, String string, String json) {
-    this.eventId = eventId;
-    this.integer = integer;
-    this.string = string;
-    this.json = json;
+  private Event(Builder builder) {
+    this.eventId = builder.eventId;
+    this.integer = builder.integer;
+    this.string = builder.string;
+    this.json = builder.json;
   }
 
   /**
@@ -208,7 +208,7 @@ public class Event {
      * @return Event
      */
     public Event build() {
-      return new Event(eventId, integer, string, json);
+      return new Event(this);
     }
   }
 }