You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/GUIDE.md
+7
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,13 @@ This option disables detection of messages/events/state based on type of argumen
118
118
This option disables detection of messages/events/state based on return type of the function given as argument to method. This detection is enabled by default. If you want to disable it, add the following setting:<br>
This option can be used to pass a comma-separated list of fully-qualified names of types that should be considered serializable by the checker, even if they do **not** extend a designated serializability trait.
124
+
The list is empty by default. If you want to mark some types as serializable, add the following setting (here shown with sample types):<br>
Before using this compiler plugin, make sure that you are using both [annotations](#annotations) properly. If so — the plugin can be used right away. This plugin checks whether classes marked with serializability trait are being referenced in a marked serializer, which ensures that codecs will be registered in runtime.
Copy file name to clipboardExpand all lines: serializability-checker-compiler-plugin/src/main/scala/org/virtuslab/ash/SerializabilityCheckerCompilerPlugin.scala
+6
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,10 @@ class SerializabilityCheckerCompilerPlugin(override val global: Global) extends
@@ -37,6 +41,7 @@ class SerializabilityCheckerCompilerPlugin(override val global: Global) extends
37
41
|$disableMethods - disables detection of messages/events/state based on type of arguments to a method, e.g. akka.actor.typed.ActorRef.tell
38
42
|$disableMethodsUntyped - disables detection of messages/events/state based on type of arguments to a method that takes Any, used for Akka Classic
39
43
|$disableHigherOrderFunctions - disables detection of messages/events/state based on return type of the function given as argument to method
44
+
|$typesExplicitlyMarkedAsSerializable - comma-separated list of fully-qualified names of types that should be considered serializable by this checker, even if they do NOT extend a designated serializability trait
Copy file name to clipboardExpand all lines: serializability-checker-compiler-plugin/src/main/scala/org/virtuslab/ash/SerializabilityCheckerCompilerPluginComponent.scala
+2
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,8 @@ class SerializabilityCheckerCompilerPluginComponent(
Copy file name to clipboardExpand all lines: serializability-checker-compiler-plugin/src/main/scala/org/virtuslab/ash/SerializabilityCheckerOptions.scala
+2-1
Original file line number
Diff line number
Diff line change
@@ -10,4 +10,5 @@ class SerializabilityCheckerOptions(
Copy file name to clipboardExpand all lines: serializability-checker-compiler-plugin/src/test/scala/org/virtuslab/ash/SerializabilityCheckerCompilerPluginComponentSpec.scala
+33
Original file line number
Diff line number
Diff line change
@@ -180,5 +180,38 @@ class SerializabilityCheckerCompilerPluginComponentSpec extends AnyWordSpecLike
0 commit comments