提交 17f5227b 编写于 作者: O Oleg Nenashev

Noting #1672

上级 73e151f3
......@@ -62,6 +62,9 @@ Upcoming changes</a>
<li class=bug>
Category titles in Available Plugins list appear wrong in reverse sort order
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-17290">issue 17290</a>)
<li class=rfe>
<code>CronTab</code> API: Timezone support for scheduling
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-9283">issue 9283</a>)
</ul>
</div><!--=TRUNK-END=-->
<h3><a name=v1.614>What's new in 1.614</a> (2015/05/17)</h3>
......
......@@ -94,8 +94,9 @@ public final class CronTab {
* @param timezone
* Used to schedule cron in a differnt timezone. Null to use the default system
* timezone
* @since 1.615
*/
public CronTab(String format, int line, Hash hash, String timezone) throws ANTLRException {
public CronTab(String format, int line, Hash hash, @CheckForNull String timezone) throws ANTLRException {
set(format, line, hash, timezone);
}
......@@ -103,6 +104,9 @@ public final class CronTab {
set(format, line, hash, null);
}
/**
* @since 1.615
*/
private void set(String format, int line, Hash hash, String timezone) throws ANTLRException {
CrontabLexer lexer = new CrontabLexer(new StringReader(format));
lexer.setLine(line);
......
......@@ -78,6 +78,7 @@ public final class CronTabList {
/**
* Checks if given timezone string is supported by TimeZone and returns
* the same string if valid, null otherwise
* @since 1.615
*/
public static @CheckForNull String getValidTimezone(String timezone) {
String[] validIDs = TimeZone.getAvailableIDs();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册