class WithPrivateFinalField { private final String s = \"I’m totally safe\"; public String toString() { return \"s = \" + s; } } WithPrivateFinal
Being final, the compiler expected the value not to change, so it probably hardcoded the string directly into your toString method.
final
toString