mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Use null instead of MessageId.NONE and AuthorId.NONE, as for other
optional fields.
This commit is contained in:
@@ -8,9 +8,6 @@ import net.sf.briar.api.serial.Writer;
|
||||
/** Type-safe wrapper for a byte array that uniquely identifies an author. */
|
||||
public class AuthorId extends UniqueId {
|
||||
|
||||
/** Used to indicate that a message is anonymous. */
|
||||
public static final AuthorId NONE = new AuthorId(new byte[UniqueId.LENGTH]);
|
||||
|
||||
public AuthorId(byte[] id) {
|
||||
super(id);
|
||||
}
|
||||
|
||||
@@ -8,10 +8,6 @@ import net.sf.briar.api.serial.Writer;
|
||||
/** Type-safe wrapper for a byte array that uniquely identifies a message. */
|
||||
public class MessageId extends UniqueId {
|
||||
|
||||
/** Used to indicate that the first message in a thread has no parent. */
|
||||
public static final MessageId NONE =
|
||||
new MessageId(new byte[UniqueId.LENGTH]);
|
||||
|
||||
public MessageId(byte[] id) {
|
||||
super(id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user