ModeShape/modeshape — pull request #1297 by mikedurbin (2014-10-15 15:55:27+00:00)
Title: MODE-2342: Remove lock tokens from sessions upon logout().

When a session ends (via logout()) any lock tokens held by that session were left in a state where they couldn't be associated with another session (or removed from the terminated session).

This small change (and illustrative test) changes that behavior in a way that is not inconsistent with the JCR spec and simplifies use of locks in sessions.