diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-05-12 13:32:13 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-05-12 14:11:20 +0200 |
commit | c701c420ca241c9de6e3a72ce18128c6840fa156 (patch) | |
tree | 3b2bf4528dffd8ae4293ee53a0439e48d8b8e5c2 | |
parent | 1d3767c84d330c2f529c05f1e0df1e035a153a5b (diff) | |
download | sonarqube-c701c420ca241c9de6e3a72ce18128c6840fa156.tar.gz sonarqube-c701c420ca241c9de6e3a72ce18128c6840fa156.zip |
Fix javadoc of DateUtils about ISO8601 vs RFC822 formats
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java | 4 |
1 files changed, 2 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 cd19c23019b..d226fe6270a 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 @@ -35,7 +35,7 @@ import javax.annotation.Nullable; import static com.google.common.base.Preconditions.checkArgument; /** - * Parses and formats <a href="http://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a> dates. + * Parses and formats <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html#rfc822timezone">RFC 822</a> dates. * This class is thread-safe. * * @since 2.7 @@ -220,7 +220,7 @@ public final class DateUtils { if (softRef == null || softRef.get() == null) { SimpleDateFormat sdf = new SimpleDateFormat(format); sdf.setLenient(false); - softRef = new SoftReference<DateFormat>(sdf); + softRef = new SoftReference<>(sdf); super.set(softRef); } return softRef; |