Skip to content

Commit f0a9b5d

Browse files
committed
Improve description to use readObject.
1 parent ede5b9f commit f0a9b5d

File tree

1 file changed

+2
-2
lines changed
  • xstream-distribution/src/content

1 file changed

+2
-2
lines changed

xstream-distribution/src/content/faq.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ <h2 id="Serialization_initialize_transient">How do I initialize a transient fiel
254254
return this;
255255
}
256256
}</pre></div>
257-
<p>or</p>
258-
<div class="Source Java"><pre>class ThreadAwareComponent {
257+
<p>or in case your type implements java.io.Serializable, you have an alternative:</p>
258+
<div class="Source Java"><pre>class ThreadAwareComponent implements Serializable{
259259
private transient ThreadLocal component;
260260
// ...
261261
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {

0 commit comments

Comments
 (0)