提交 dccd3d10 编写于 作者: K kohsuke

if we clear it after load, load is meaningless! (issue #600)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3453 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d99b3cf0
...@@ -57,6 +57,8 @@ public class User extends AbstractModelObject { ...@@ -57,6 +57,8 @@ public class User extends AbstractModelObject {
* Loads the other data from disk if it's available. * Loads the other data from disk if it's available.
*/ */
private synchronized void load() { private synchronized void load() {
properties.clear();
XmlFile config = getConfigFile(); XmlFile config = getConfigFile();
try { try {
if(config.exists()) if(config.exists())
...@@ -65,7 +67,6 @@ public class User extends AbstractModelObject { ...@@ -65,7 +67,6 @@ public class User extends AbstractModelObject {
LOGGER.log(Level.SEVERE, "Failed to load "+config,e); LOGGER.log(Level.SEVERE, "Failed to load "+config,e);
} }
properties.clear();
// allocate default instances if needed. // allocate default instances if needed.
// doing so after load makes sure that newly added user properties do get reflected // doing so after load makes sure that newly added user properties do get reflected
for (UserPropertyDescriptor d : UserProperties.LIST) { for (UserPropertyDescriptor d : UserProperties.LIST) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册