提交 97568419 编写于 作者: K kohsuke

doc improvement.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6085 71c3de6d-444a-0410-be80-ed276b4c234a
上级 147f6b11
...@@ -159,6 +159,15 @@ public class User extends AbstractModelObject { ...@@ -159,6 +159,15 @@ public class User extends AbstractModelObject {
return get("unknown"); return get("unknown");
} }
/**
* Gets the {@link User} object by its id.
*
* @param create
* If true, this method will never return null for valid input
* (by creating a new {@link User} object if none exists.)
* If false, this method will return null if {@link User} object
* with the given name doesn't exist.
*/
public static User get(String id, boolean create) { public static User get(String id, boolean create) {
if(id==null) if(id==null)
return null; return null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册