Avoid clearing of collections when closing StatefulPersistenceContext

Description

This is a very minor performance improvement; after having made most collections lazily initialized, there's no strong reason to actually clear() them when we could just null them out: a win-win both for performance and helping track down the garbage.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Minor
Configure