Skip to content

Commit 18e70c5

Browse files
committed
ConfigUtil: Annotate getDuration as @nullable
getDuration can return null if the value is not configured and null is given for the defaultValue (which is already annotated as @nullable). Change-Id: Iebf59b4f1070eabca7ef6f61e6c51a748123d343
1 parent 937bbc2 commit 18e70c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/com/google/gitiles/ConfigUtil.java

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class ConfigUtil {
3939
* @param defaultValue value to use when the value is not assigned.
4040
* @return a standard duration representing the time read, or defaultValue.
4141
*/
42+
@Nullable
4243
public static Duration getDuration(
4344
Config config,
4445
String section,

0 commit comments

Comments
 (0)