]> source.dussan.org Git - sonarqube.git/commitdiff
Fix javadoc of DateUtils about ISO8601 vs RFC822 formats
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 12 May 2017 11:32:13 +0000 (13:32 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 12 May 2017 12:11:20 +0000 (14:11 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java

index cd19c23019bcb850336795eb2c6d265ad88c69a2..d226fe6270a2845ae2665843c5cdda6fb2c179d6 100644 (file)
@@ -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;