[SPIGOT-6274] Reloading configuration does not clear previous values Created: 12/Dec/20 Updated: 12/Jan/21 Resolved: 12/Jan/21 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Pyves | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Version: | git-Spigot-57bbdd8-dea4138 (MC: 1.16.3) |
Guidelines Read: | Yes |
Description |
All YamlConfiguration.load methods state the following in their Javadocs: All the values contained within this configuration will be removed, leaving only settings and defaults, and the new values will be loaded from the given file. Unfortunately, this is incorrect, none of the configuration values are removed as clear is not called on the underlying map. |
Comments |
Comment by md_5 [ 27/Dec/20 ] |
Include a test case like the instructions told you to |