Skip to content

Commit

Permalink
Remove various warnings for serial when using Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
Spider-Admin committed Nov 9, 2024
1 parent 37ea541 commit 7fd3bd5
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/main/java/frost/storage/perst/PerstString.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class PerstString extends Persistent {

private String value;

public PerstString() {
}

public PerstString(String value) {
this.value = value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class ArchiveMessageStorageRoot extends Persistent {

private Index<PerstFrostArchiveBoardObject> boardsByName;

public ArchiveMessageStorageRoot() {
}

public ArchiveMessageStorageRoot(Storage storage) {
boardsByName = storage.createIndex(String.class, true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class PerstFrostArchiveBoardAttachment extends Persistent {
private String privKey;
private String description;

public PerstFrostArchiveBoardAttachment() {
}

public PerstFrostArchiveBoardAttachment(String name, String pubKey, String privKey, String description) {
this.name = name;
this.pubKey = pubKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public class PerstFrostArchiveBoardObject extends Persistent {
private Index<PerstFrostArchiveMessageObject> messageIndex;
private Index<PerstFrostArchiveMessageObject> messageIdIndex;

public PerstFrostArchiveBoardObject() {
}

public PerstFrostArchiveBoardObject(Storage storage, String name) {
boardName = name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class PerstFrostArchiveFileAttachment extends Persistent {
private long size;
private String chkKey;

public PerstFrostArchiveFileAttachment() {
}

public PerstFrostArchiveFileAttachment(String name, long size, String chkKey) {
this.name = name;
this.size = size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ public class PerstFrostArchiveMessageObject extends Persistent {
private String content;
private String publicKey;

private Link<PerstFrostArchiveBoardAttachment> boardAttachments;
private Link<PerstFrostArchiveFileAttachment> fileAttachments;
private transient Link<PerstFrostArchiveBoardAttachment> boardAttachments;
private transient Link<PerstFrostArchiveFileAttachment> fileAttachments;

public PerstFrostArchiveMessageObject() {
}

public PerstFrostArchiveMessageObject(Storage storage, String messageId, String inReplyTo, long dateAndTime,
int msgIndex, String fromName, String subject, String recipientName, int signatureStatus, boolean isReplied,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public class MessageContentStorageRoot extends Persistent {
private Index<PerstString> signatureByMsgOid;
private Index<PerstAttachments> attachmentsByMsgOid;

public MessageContentStorageRoot() {
}

public MessageContentStorageRoot(Storage storage) {
contentByMsgOid = storage.createIndex(int.class, true);
publickeyByMsgOid = storage.createIndex(int.class, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public class MessageStorageRoot extends Persistent {

private Index<PerstIdentitiesMessages> identitiesMessages;

public MessageStorageRoot() {
}

public MessageStorageRoot(final Storage storage) {
boardsByName = storage.createIndex(String.class, true);
boardsById = storage.createIndex(int.class, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public class PerstAttachments extends Persistent {
private IPersistentList<PerstBoardAttachment> boardAttachments;
private IPersistentList<PerstFileAttachment> fileAttachments;

public PerstAttachments() {
}

public PerstAttachments(Storage storage, IPersistentList<PerstBoardAttachment> otherBoardAttachments,
IPersistentList<PerstFileAttachment> otherFileAttachments) {
if (otherBoardAttachments != null && otherBoardAttachments.size() > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class PerstBoardAttachment extends Persistent {
private String privKey;
private String description;

public PerstBoardAttachment() {
}

public PerstBoardAttachment(String name, String pubKey, String privKey, String description) {
this.name = name;
this.pubKey = pubKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class PerstFileAttachment extends Persistent {
private long size;
private String chkKey;

public PerstFileAttachment() {
}

public PerstFileAttachment(String name, long size, String chkKey) {
this.name = name;
this.size = size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public class PerstFrostBoardObject extends Persistent {
private IPersistentList<PerstFrostUnsentMessageObject> unsentMessagesList;
private IPersistentList<PerstFrostUnsentMessageObject> draftMessagesList;

public PerstFrostBoardObject() {
}

public PerstFrostBoardObject(Storage storage, String boardName, int boardId) {
this.boardName = boardName;
this.boardId = boardId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public class PerstFrostMessageObject extends Persistent {
private int idLinePos;
private int idLineLen;

public PerstFrostMessageObject() {
}

public PerstFrostMessageObject(String messageId, String inReplyTo, long dateAndTime, int msgIndex,
String invalidReason, String fromName, String subject, String recipientName, int signatureStatus,
boolean isDeleted, boolean isNew, boolean isReplied, boolean isJunk, boolean isFlagged, boolean isStarred,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ public class PerstFrostUnsentMessageObject extends Persistent {
private int idLinePos;
private int idLineLen;

private Link<PerstFrostUnsentBoardAttachment> boardAttachments;
private Link<PerstFrostUnsentFileAttachment> fileAttachments;
private transient Link<PerstFrostUnsentBoardAttachment> boardAttachments;
private transient Link<PerstFrostUnsentFileAttachment> fileAttachments;

private String content;

private long timeAdded;

private long sendAfterTime;

public PerstFrostUnsentMessageObject() {
}

public PerstFrostUnsentMessageObject(Storage storage, String messageId, String inReplyTo, String fromName,
String subject, String recipientName, int idLinePos, int idLineLen, String content, long timeAdded,
long sendAfterTime) {
Expand Down Expand Up @@ -119,6 +122,9 @@ public class PerstFrostUnsentFileAttachment extends Persistent {
private long size;
private String chkKey;

public PerstFrostUnsentFileAttachment() {
}

public PerstFrostUnsentFileAttachment(String name, long size, String chkKey) {
this.name = name;
this.size = size;
Expand Down Expand Up @@ -147,6 +153,9 @@ public class PerstFrostUnsentBoardAttachment extends Persistent {
private String privKey;
private String description;

public PerstFrostUnsentBoardAttachment() {
}

public PerstFrostUnsentBoardAttachment(String name, String pubKey, String privKey, String description) {
this.name = name;
this.pubKey = pubKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class PerstIdentitiesMessages extends Persistent {
private String uniqueName;
private IPersistentList<PerstFrostMessageObject> messagesFromIdentity;

public PerstIdentitiesMessages() {
}

public PerstIdentitiesMessages(Storage storage, String uniqueName) {
this.uniqueName = uniqueName;
messagesFromIdentity = storage.createScalableList();
Expand Down

0 comments on commit 7fd3bd5

Please sign in to comment.