version can be null.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8649 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-04-16 05:32:35 +00:00
1 parent 4bc6410a32
commit 23293f9a63
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -715,7 +715,7 @@ public class Functions {
*
* @since 1.150
*/
public static Object defaulted(Object value, Object defaultValue) {
public static <T> T defaulted(T value, T defaultValue) {
return value!=null ? value : defaultValue;
}