Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Lazy Initialization of Map to avoid using Display Thread #198
On creation of MapImpl instances colourScheme and colorPalette are created. This causes Display thread access via PreferencesStore initialization which is problematic if using MapImpl in Test cases.
To avoid these behavior the refactoring initializes the mentioned instances lazily.