Use null instead of MessageId.NONE and AuthorId.NONE, as for other

optional fields.
This commit is contained in:
akwizgran
2011-09-13 14:04:23 +01:00
parent 70b1487140
commit 1d25b5a92e
13 changed files with 51 additions and 47 deletions

View File

@@ -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);
}

View File

@@ -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);
}