Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,30 @@ public final String serializeToString(final T item) {
* annotated type methods over unannotated methods.
*
* @param <V> the value to deserialize
* @since 4.2.0
*/
abstract static class Annotated<V> extends ScalarSerializer<V> {

public abstract static class Annotated<V> extends ScalarSerializer<V> {

/**
* Create a new annotated scalar serializer
* that handles the provided type.
*
* <p>{@code type} must not be a raw parameterized type.</p>
*
* @param type type to handle
* @since 4.2.0
*/
protected Annotated(final Class<V> type) {
super(type);
}

/**
* Create a new annotated scalar serializer
* that handles the provided type.
*
* @param type type to handle
* @since 4.2.0
*/
protected Annotated(final TypeToken<V> type) {
super(type);
}
Expand Down