From 97568419f1a1612c5a6c328d277c76eda06ce801 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Tue, 27 Nov 2007 15:25:33 +0000 Subject: [PATCH] doc improvement. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6085 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/User.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/java/hudson/model/User.java b/core/src/main/java/hudson/model/User.java index 7bd05ee1f3..5548f8cfc3 100644 --- a/core/src/main/java/hudson/model/User.java +++ b/core/src/main/java/hudson/model/User.java @@ -159,6 +159,15 @@ public class User extends AbstractModelObject { 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) { if(id==null) return null; -- GitLab