From 6e3f754366132d82f4a1880807776b4fef340887 Mon Sep 17 00:00:00 2001 From: seregamorph Date: Sat, 26 Sep 2020 12:07:00 +0300 Subject: [PATCH] javadoc --- src/main/java/org/kohsuke/github/GitUser.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GitUser.java b/src/main/java/org/kohsuke/github/GitUser.java index 63e79740b3..3162ff04fc 100644 --- a/src/main/java/org/kohsuke/github/GitUser.java +++ b/src/main/java/org/kohsuke/github/GitUser.java @@ -4,6 +4,8 @@ import java.util.Date; +import javax.annotation.CheckForNull; + /** * Represents a user in Git who authors/commits a commit. *

@@ -36,10 +38,13 @@ public String getEmail() { } /** - * Gets username. + * Gets username. Note: it presents only in events. * * @return GitHub username */ + @Preview + @Deprecated + @CheckForNull public String getUsername() { return username; }