Skip to content

Commit

Permalink
make sure the object is doing what is supposed to do
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Sep 23, 2014
1 parent e1c225c commit 7272f7e
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public final class BroadcastMessage {

public final String id;
public final Object message;
public Object message;

public BroadcastMessage(String id, Object message) {
this.id = id;
Expand All @@ -36,11 +36,16 @@ public BroadcastMessage(Object message) {
this(UUID.randomUUID().toString(), message);
}

public String getId() {
public String id() {
return id;
}

public Object getMessage() {
public Object message() {
return message;
}

public BroadcastMessage message(Object message) {
this.message = message;
return this;
}
}

0 comments on commit 7272f7e

Please sign in to comment.