Skip to content

Commit 2f69e9d

Browse files
committed
Serializable object must implement 'readResolve'
Signed-off-by: Hui-Hong You <hiroshi@ghostsinthelab.org>
1 parent a47ee8d commit 2f69e9d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • app/src/main/java/com/miyabi_hiroshi/app/libchewing_android_app_module

app/src/main/java/com/miyabi_hiroshi/app/libchewing_android_app_module/Chewing.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class Chewing {
3535
}
3636

3737
object ChewingInitException : Throwable() {
38+
private fun readResolve(): Any = ChewingInitException
3839
override val message: String = "Unable to initialize Chewing"
3940
}
4041

0 commit comments

Comments
 (0)