Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: see all previous

...

Wiki Markup
If the thread local variable is read by the same thread again, it is reinitialized using {{initialValue()}} unless the thread explicitly sets the value before this happens \[[API 06|AA. Java References#API 06]\]. This solution transfers the burden of maintainability to the client ({{DiaryPool}}) but is a good option when the {{Diary}} class cannot be refactored.

...