From d0b1e4b384c440adaafc723158435ee06dc56fd3 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Mon, 23 Mar 2009 18:26:49 +0000 Subject: [PATCH] replaced "h.defaulted(x,y)" with "x?:y" git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16489 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/Functions.java | 2 +- .../src/main/resources/hudson/model/LoadStatistics/main.jelly | 4 ++-- core/src/main/resources/lib/form/descriptorList.jelly | 4 ++-- core/src/main/resources/lib/form/descriptorRadioList.jelly | 2 +- core/src/main/resources/lib/form/expandableTextbox.jelly | 4 ++-- core/src/main/resources/lib/form/hetero-list.jelly | 4 ++-- core/src/main/resources/lib/form/password.jelly | 4 ++-- core/src/main/resources/lib/form/repeatableDeleteButton.jelly | 2 +- core/src/main/resources/lib/form/submit.jelly | 2 +- core/src/main/resources/lib/form/textarea.jelly | 4 ++-- core/src/main/resources/lib/form/textbox.jelly | 4 ++-- 11 files changed, 18 insertions(+), 18 deletions(-) diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 61611ad72b..20802057e0 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -869,7 +869,7 @@ public class Functions { /** * If the value exists, return that value. Otherwise return the default value. *

- * This method is useful for supplying a default value to a form field. + * Starting 1.294, JEXL supports the elvis operator "x?:y" that supercedes this. * * @since 1.150 */ diff --git a/core/src/main/resources/hudson/model/LoadStatistics/main.jelly b/core/src/main/resources/hudson/model/LoadStatistics/main.jelly index 6ba854d270..9c05b51f83 100644 --- a/core/src/main/resources/hudson/model/LoadStatistics/main.jelly +++ b/core/src/main/resources/hudson/model/LoadStatistics/main.jelly @@ -28,7 +28,7 @@ THE SOFTWARE. ${%title(it.displayName)} - +

${%Timespan}: @@ -58,7 +58,7 @@ THE SOFTWARE.
- +
${%blurb}
diff --git a/core/src/main/resources/lib/form/descriptorList.jelly b/core/src/main/resources/lib/form/descriptorList.jelly index 96bc4183b3..8b9b81eff5 100644 --- a/core/src/main/resources/lib/form/descriptorList.jelly +++ b/core/src/main/resources/lib/form/descriptorList.jelly @@ -52,10 +52,10 @@ THE SOFTWARE. - + - + diff --git a/core/src/main/resources/lib/form/descriptorRadioList.jelly b/core/src/main/resources/lib/form/descriptorRadioList.jelly index 71a632938b..076da47124 100644 --- a/core/src/main/resources/lib/form/descriptorRadioList.jelly +++ b/core/src/main/resources/lib/form/descriptorRadioList.jelly @@ -46,7 +46,7 @@ THE SOFTWARE. - + diff --git a/core/src/main/resources/lib/form/expandableTextbox.jelly b/core/src/main/resources/lib/form/expandableTextbox.jelly index 54df53c37b..de42c3e691 100644 --- a/core/src/main/resources/lib/form/expandableTextbox.jelly +++ b/core/src/main/resources/lib/form/expandableTextbox.jelly @@ -54,7 +54,7 @@ THE SOFTWARE. which is the recommended approach. - + @@ -65,7 +65,7 @@ THE SOFTWARE.
- + diff --git a/core/src/main/resources/lib/form/hetero-list.jelly b/core/src/main/resources/lib/form/hetero-list.jelly index 673167ef1a..3a3d2423f6 100644 --- a/core/src/main/resources/lib/form/hetero-list.jelly +++ b/core/src/main/resources/lib/form/hetero-list.jelly @@ -74,7 +74,7 @@ THE SOFTWARE. - +
@@ -97,7 +97,7 @@ THE SOFTWARE.
- +
\ No newline at end of file diff --git a/core/src/main/resources/lib/form/password.jelly b/core/src/main/resources/lib/form/password.jelly index 838541ffd5..a0b77d802c 100644 --- a/core/src/main/resources/lib/form/password.jelly +++ b/core/src/main/resources/lib/form/password.jelly @@ -49,8 +49,8 @@ THE SOFTWARE. - \ No newline at end of file diff --git a/core/src/main/resources/lib/form/submit.jelly b/core/src/main/resources/lib/form/submit.jelly index 87d2a8e978..87b025115a 100644 --- a/core/src/main/resources/lib/form/submit.jelly +++ b/core/src/main/resources/lib/form/submit.jelly @@ -36,5 +36,5 @@ THE SOFTWARE. The text of the submit button. Something like "submit", "OK", etc. - + \ No newline at end of file diff --git a/core/src/main/resources/lib/form/textarea.jelly b/core/src/main/resources/lib/form/textarea.jelly index d4a0de5f74..027160656a 100644 --- a/core/src/main/resources/lib/form/textarea.jelly +++ b/core/src/main/resources/lib/form/textarea.jelly @@ -51,11 +51,11 @@ THE SOFTWARE.
diff --git a/core/src/main/resources/lib/form/textbox.jelly b/core/src/main/resources/lib/form/textbox.jelly index bd0a314379..88111ad9c4 100644 --- a/core/src/main/resources/lib/form/textbox.jelly +++ b/core/src/main/resources/lib/form/textbox.jelly @@ -50,8 +50,8 @@ THE SOFTWARE.