提交 26b1362d 编写于 作者: J Jesse Glick

Improved documentation.

上级 0e1bc560
......@@ -4,9 +4,10 @@ import org.apache.commons.beanutils.Converter;
import org.kohsuke.stapler.QueryParameter;
import java.util.concurrent.TimeUnit;
import javax.annotation.CheckForNull;
/**
* Represents a length of something, like "3 seconds"
* Represents a length of something, like {@code 3sec}.
*
* This supports parameter injection, such as via {@link QueryParameter}.
*
......@@ -32,7 +33,7 @@ public class TimeDuration {
return t.convert(millis,TimeUnit.MILLISECONDS);
}
public static TimeDuration fromString(String delay) {
public static @CheckForNull TimeDuration fromString(@CheckForNull String delay) {
if (delay==null)
return null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册