-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flags to selectively disable serializability checks in messages/e…
…vents/state (#383)
- Loading branch information
1 parent
d7820a5
commit 7bc7726
Showing
12 changed files
with
205 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
serializability-checker-compiler-plugin/src/main/scala/org/virtuslab/ash/ClassKind.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.virtuslab.ash | ||
|
||
sealed trait ClassKind { | ||
val name: String | ||
} | ||
|
||
object ClassKind { | ||
case object Message extends ClassKind { | ||
val name = "message" | ||
} | ||
case object PersistentEvent extends ClassKind { | ||
val name = "persistent event" | ||
} | ||
case object PersistentState extends ClassKind { | ||
val name = "persistent state" | ||
} | ||
|
||
case object Ignore extends ClassKind { | ||
val name = "ignore" | ||
} | ||
} |
21 changes: 0 additions & 21 deletions
21
serializability-checker-compiler-plugin/src/main/scala/org/virtuslab/ash/ClassType.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions
6
serializability-checker-compiler-plugin/src/test/resources/ReplyEffectTestEvent.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...alizability-checker-compiler-plugin/src/test/resources/ReplyEffectTestEventAndState.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.random.project | ||
|
||
import akka.persistence.typed.scaladsl.ReplyEffect | ||
|
||
object ReplyEffectTestEventAndState { | ||
trait Event extends MySerializable | ||
trait State extends MySerializable | ||
|
||
def test: ReplyEffect[Event, State] = ??? | ||
} |
6 changes: 0 additions & 6 deletions
6
serializability-checker-compiler-plugin/src/test/resources/ReplyEffectTestState.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.