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
diff --git a/java/com/google/gitiles/ConfigUtil.java b/java/com/google/gitiles/ConfigUtil.java index 2fbe102..593563d 100644 --- a/java/com/google/gitiles/ConfigUtil.java +++ b/java/com/google/gitiles/ConfigUtil.java
@@ -39,6 +39,7 @@ * @param defaultValue value to use when the value is not assigned. * @return a standard duration representing the time read, or defaultValue. */ + @Nullable public static Duration getDuration( Config config, String section,