aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2017-09-15 09:55:12 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-09-25 15:17:37 +0200
commit150d813d9408a92646bcdab284e43c59c1e8d032 (patch)
tree4e2a87b9a5656c31bb6a981f962da77fee120778 /sonar-plugin-api
parent3fe5d569ca87b58e1cfbb9253abe6a8c5c912230 (diff)
downloadsonarqube-150d813d9408a92646bcdab284e43c59c1e8d032.tar.gz
sonarqube-150d813d9408a92646bcdab284e43c59c1e8d032.zip
Remove deprecation on System2.now()
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java
index 0cea02ff7ea..f87e395d773 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java
@@ -61,6 +61,8 @@ import org.sonar.api.server.ServerSide;
* Note that the name System2 was chosen to not conflict with {@link java.lang.System}.
* <br>
* An instance is available in IoC container since 4.3.
+ *
+ * Since 6.4 you can also inject {@link Clock} instead of {@link System2} if you are only interested by date/time operations
*
* @since 4.2
*/
@@ -73,9 +75,8 @@ public class System2 {
/**
* Shortcut for {@link System#currentTimeMillis()}
- * @deprecated since 6.6 use {@link Clock} that is available in pico.
+ * Since 6.4 you can also inject {@link Clock} instead of {@link System2}
*/
- @Deprecated
public long now() {
return System.currentTimeMillis();
}