Incorporated pull request feedback:

* moved to jenkins.util.SystemProperties
* consistent naming getString/getInteger/getBoolean
* improved code formatting
Improved JavaDoc
This commit is contained in:
Johannes Ernst committed 2015-11-18 18:26:41 +00:00
1 parent 4e79ceccdd
commit 9303136c9d
61 files changed
+151 -132

No files matched your search

+3 -2
View File
@@ -25,6 +25,7 @@
*/
package hudson;
import jenkins.util.SystemProperties;
import hudson.cli.CLICommand;
import hudson.console.ConsoleAnnotationDescriptor;
import hudson.console.ConsoleAnnotatorFactory;
@@ -616,7 +617,7 @@ public class Functions {
response.addCookie(c);
}
if (refresh) {
response.addHeader("Refresh", SystemProperties.getProperty("hudson.Functions.autoRefreshSeconds", "10"));
response.addHeader("Refresh", SystemProperties.getString("hudson.Functions.autoRefreshSeconds", "10"));
}
}
@@ -838,7 +839,7 @@ public class Functions {
*/
public static String getFooterURL() {
if(footerURL == null) {
footerURL = SystemProperties.getProperty("hudson.footerURL");
footerURL = SystemProperties.getString("hudson.footerURL");
if(StringUtils.isBlank(footerURL)) {
footerURL = "http://jenkins-ci.org/";
}