Adjusted serial version UIDs and Message#toString()
This commit is contained in:
parent
b18ecdae86
commit
a4603231ff
@ -57,7 +57,7 @@ public class Message implements Serializable {
|
|||||||
private Date receivedDate, readDate;
|
private Date receivedDate, readDate;
|
||||||
private MessageStatus status;
|
private MessageStatus status;
|
||||||
|
|
||||||
private static final long serialVersionUID = -4393477412979594435L;
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes a {@link Message} with values for all of its properties. The use
|
* Initializes a {@link Message} with values for all of its properties. The use
|
||||||
@ -107,13 +107,15 @@ public class Message implements Serializable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.format("TextMessage[id=%d,sender=%s,recipient=%s,date=%s,status=%s,text=%s,hasAttachment=%b]",
|
return String.format(
|
||||||
|
"TextMessage[id=%d,sender=%s,recipient=%s,date=%s,status=%s,text=%s,forwarded,hasAttachment=%b]",
|
||||||
id,
|
id,
|
||||||
senderId,
|
senderId,
|
||||||
recipientId,
|
recipientId,
|
||||||
new SimpleDateFormat("dd.MM.yyyy HH:mm:ss").format(creationDate),
|
new SimpleDateFormat("dd.MM.yyyy HH:mm:ss").format(creationDate),
|
||||||
status,
|
status,
|
||||||
text,
|
text,
|
||||||
|
forwarded,
|
||||||
attachment != null);
|
attachment != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
private UserStatus status;
|
private UserStatus status;
|
||||||
|
|
||||||
private static final long serialVersionUID = 3530947374856708236L;
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes a {@link User}. The {@link UserStatus} is set to
|
* Initializes a {@link User}. The {@link UserStatus} is set to
|
||||||
|
Reference in New Issue
Block a user