Skip to content

Commit bb3673c

Browse files
committed
Do not include writeReplace when decompiling
1 parent 91574bd commit bb3673c

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
@@ -646,6 +646,7 @@ trait Printers
646646
n == "copy" ||
647647
n.matches("copy\\$default\\$[1-9][0-9]*") || // default parameters for the copy method
648648
n.matches("_[1-9][0-9]*") || // Getters from Product
649+
n == "writeReplace" || // Case class serialization
649650
n == "productElementName"
650651
case _ => false
651652
})

0 commit comments

Comments
 (0)