mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-11 19:16:42 +00:00
Util#fixNull: Address Javadoc comments and add annotations
This commit is contained in:
1 parent
179d597679
commit
beadc5946f
1 file changed
+4
-2
@@ -1199,9 +1199,11 @@ public class Util {
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert null to defaultValue.
|
||||
* Convert {@code null} to a default value.
|
||||
* @since TODO
|
||||
*/
|
||||
public static <T> T fixNull(@CheckForNull T s, T defaultValue) {
|
||||
@Nonnull
|
||||
public static <T> T fixNull(@CheckForNull T s, @Nonnull T defaultValue) {
|
||||
return s != null ? s : defaultValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user