diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-21 22:33:29 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-22 10:54:35 +0200 |
commit | 8682a00ca2300a79a9133f344dd9ba2ce39ba0fa (patch) | |
tree | f1ecabd886d763299ba63a0c730f51b6442c20fd /sonar-plugin-api | |
parent | 2b4227eb6ee14274edf3cfe889b046c56d9b5a67 (diff) | |
download | sonarqube-8682a00ca2300a79a9133f344dd9ba2ce39ba0fa.tar.gz sonarqube-8682a00ca2300a79a9133f344dd9ba2ce39ba0fa.zip |
SONAR-6736 refactor step names and descriptions
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java index dcb95c2fd62..9abeb23dca3 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java @@ -87,9 +87,10 @@ public final class DateUtils { * Parse format {@link #DATE_FORMAT}. This method never throws exception. * * @param s any string - * @return the date, null if parsing error or null string + * @return the date, {@code null} if parsing error or if parameter is {@code null} * @since 3.0 */ + @CheckForNull public static Date parseDateQuietly(@Nullable String s) { Date date = null; if (s != null) { @@ -121,8 +122,9 @@ public final class DateUtils { * Parse format {@link #DATETIME_FORMAT}. This method never throws exception. * * @param s any string - * @return the datetime, null if parsing error or null string + * @return the datetime, {@code null} if parsing error or if parameter is {@code null} */ + @CheckForNull public static Date parseDateTimeQuietly(@Nullable String s) { Date datetime = null; if (s != null) { |