Skip to content

Commit ef3ddb3

Browse files
nicolasstuckismarter
authored andcommitted
Do not include writeReplace when decompiling
1 parent 180a690 commit ef3ddb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/scala/tasty/reflect/Printers.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ trait Printers
652652
n == "copy" ||
653653
n.matches("copy\\$default\\$[1-9][0-9]*") || // default parameters for the copy method
654654
n.matches("_[1-9][0-9]*") || // Getters from Product
655+
n == "writeReplace" || // Case class serialization
655656
n == "productElementName"
656657
case _ => false
657658
})

0 commit comments

Comments
 (0)