aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2019-05-27 17:16:40 +0200
committerSonarTech <sonartech@sonarsource.com>2019-05-29 20:21:13 +0200
commit8a6f82e51442fd43274741fd364a486379ab6422 (patch)
tree0b3da646fc30dbf6735962148cdad0929eaeaee5 /sonar-plugin-api
parentbce7a89a9dc2001fb20c0bf06a486b9b82101ed5 (diff)
downloadsonarqube-8a6f82e51442fd43274741fd364a486379ab6422.tar.gz
sonarqube-8a6f82e51442fd43274741fd364a486379ab6422.zip
SONAR-9898 Deprecate org.sonar.api.i18n.I18n
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java
index 859c69e8a32..a14b52d2ba4 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java
@@ -29,9 +29,11 @@ import org.sonar.api.server.ServerSide;
* Main component that provides translation facilities.
*
* @since 2.10
+ * @deprecated since 7.8 as plugins as no reason to use it anymore
*/
@ServerSide
@ComputeEngineSide
+@Deprecated
public interface I18n {
/**
@@ -71,7 +73,7 @@ public interface I18n {
/**
* Return the distance in time between two dates.
*
- * @see I18n#age(java.util.Locale, long durationInMillis)
+ * @see I18n#age(Locale, long durationInMillis)
* @since 4.2
*/
String age(Locale locale, Date fromDate, Date toDate);
@@ -79,7 +81,7 @@ public interface I18n {
/**
* Reports the distance in time a date and now.
*
- * @see I18n#age(java.util.Locale, java.util.Date, java.util.Date)
+ * @see I18n#age(Locale, Date, Date)
* @since 4.2
*/
String ageFromNow(Locale locale, Date date);