Skip to content

Commit e5809aa

Browse files
Added to-do list to MethodSerialization
1 parent 358aee2 commit e5809aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/codes/laivy/serializable/annotations/serializers/MethodSerialization.java

+6
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@
118118
@Documented
119119
@Retention(RetentionPolicy.RUNTIME)
120120
@Target({ElementType.TYPE, ElementType.FIELD})
121+
// todo: @ConstructorSerialization
122+
// allows to deserialize using it's own class constructor, the constructor must have
123+
// the same parameters (with same names or @KnownAs names) as the non-transient fields from it
124+
// todo: A 'propagate' variable that indicates all subclasses from the annotation's class will enherit as default the currently annotation
125+
// todo: A 'enherit' variable that indicates the class will enherit the first superclass (recursively) method serialization found (and delete @EnheritSerialization)
126+
// todo: This doesn't works for interface implementations
121127
public @interface MethodSerialization {
122128

123129
/**

0 commit comments

Comments
 (0)