diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2017-09-15 09:55:12 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2017-09-25 15:17:37 +0200 |
commit | 150d813d9408a92646bcdab284e43c59c1e8d032 (patch) | |
tree | 4e2a87b9a5656c31bb6a981f962da77fee120778 /sonar-plugin-api | |
parent | 3fe5d569ca87b58e1cfbb9253abe6a8c5c912230 (diff) | |
download | sonarqube-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.java | 5 |
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(); } |