Persist Map of Lists
Answered
Hi,
I want to persist private instance field of type Map<String, List<String>>.
I followed this documentation https://www.jetbrains.org/intellij/sdk/docs/basics/persisting_state_of_components.html and used the @XMap annotation, but it persisted the keys with null values.
Is it possible to save this type of data without implementing my own Map?
Thanks!
Please sign in to leave a comment.
See com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser.KnownExtensions for a similar setup and solution
I managed to do it based on the code you suggested, though I'm not sure if the method I save the file is correct.
Thanks!