Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Serializer with type information#376

Merged
hg-ms merged 10 commits intomasterfrom
feature/serializerWithTypeInformation
Jun 24, 2022
Merged

Serializer with type information#376
hg-ms merged 10 commits intomasterfrom
feature/serializerWithTypeInformation

Conversation

@hg-ms
Copy link
Copy Markdown
Contributor

@hg-ms hg-ms commented Jun 21, 2022

No description provided.

import one.microstream.persistence.exceptions.PersistenceException;

@SuppressWarnings("serial")
public class PersistenceExceptionTypeImportTypeNotFound extends PersistenceException
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be called BineraPersistenceExceptionTypeImportTypeNotFound, extends from BinaryPersistenceException and be in package one.microstream.persistence.binary.exceptions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, changed


import java.util.Collection;

public class SerializerTypeInfo
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better work with our collections than java.util.Collection and arrays. Array member assignments are mutable.
Best to hand in a XGettingList<String> and assign it to a XGettingList<String> field by calling the immure method to make it immutable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, changed

@fh-ms fh-ms added this to the 08.00.00 milestone Jun 22, 2022
@hg-ms hg-ms requested a review from fh-ms June 23, 2022 06:00
@hg-ms hg-ms merged commit 8da958b into master Jun 24, 2022
@hg-ms hg-ms deleted the feature/serializerWithTypeInformation branch July 15, 2022 07:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants