aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/utils
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/utils')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/AnnotationUtils.java10
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/Durations.java35
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/Paging.java8
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java11
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/Version.java8
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java16
6 files changed, 0 insertions, 88 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/AnnotationUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/AnnotationUtils.java
index ed10b6ef86b..eb98a6ca8fd 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/AnnotationUtils.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/AnnotationUtils.java
@@ -58,14 +58,4 @@ public final class AnnotationUtils {
return null;
}
-
- /**
- * Searches for a class annotation. All inheritance tree is analysed.
- *
- * @deprecated As of 3.1, replaced by {@link #getAnnotation(Object,Class)}
- */
- @Deprecated
- public static <A> A getClassAnnotation(Object object, Class<A> annotationClass) {
- return (A) getAnnotation(object, (Class<? extends Annotation>) annotationClass);
- }
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/Durations.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/Durations.java
index f535a3889f8..2ebe6b25896 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/Durations.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/Durations.java
@@ -19,7 +19,6 @@
*/
package org.sonar.api.utils;
-import java.util.Locale;
import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
@@ -37,18 +36,6 @@ public class Durations {
private static final int HOURS_IN_DAY = 8;
/**
- * @deprecated since 6.3, only one format is available
- */
- @Deprecated
- public enum DurationFormat {
- /**
- * Display duration with only one or two members.
- * For instance, Duration.decode("1d 1h 10min", 8) will return "1d 1h" and Duration.decode("12d 5h", 8) will return "12d"
- */
- SHORT
- }
-
- /**
* Create a Duration object from a number of minutes
*/
public Duration create(long minutes) {
@@ -76,28 +63,6 @@ public class Durations {
}
/**
- * Return the formatted work duration.
- *
- * @deprecated since 6.3 as the {@link Locale#ENGLISH} is always used. Use {@link #format(Duration)} instead
- */
- @Deprecated
- public String format(Locale locale, Duration duration, DurationFormat format) {
- return format(duration);
- }
-
- /**
- * Return the formatted work duration.
- * <br>
- * Example : format(Locale.FRENCH, Duration.encode("9d 10h"), DurationFormat.SHORT) -&gt; 10d 2d
- *
- * @deprecated since 6.3 as the {@link Locale#ENGLISH} is always used. Use {@link #format(Duration)} instead
- */
- @Deprecated
- public String format(Locale locale, Duration duration) {
- return format(duration);
- }
-
- /**
* Return the formatted work duration using the english bundles.
* <br>
* Example : format(Duration.encode("9d 10h")) -&gt; 10d 2h
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/Paging.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/Paging.java
index dc3b62c190a..c554fe561e6 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/Paging.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/Paging.java
@@ -39,14 +39,6 @@ public class Paging {
this.total = total;
}
- /**
- * @deprecated since 5.2 please use the #forPgeIndex(...) builder method
- */
- @Deprecated
- public static Paging create(int pageSize, int pageIndex, int totalItems) {
- return new Paging(pageSize, pageIndex, totalItems);
- }
-
public static Builder forPageIndex(int pageIndex) {
return new Builder(pageIndex);
}
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 dc0ae87db7d..c324b1ccc75 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
@@ -133,17 +133,6 @@ public class System2 {
return SystemUtils.IS_OS_MAC;
}
- /**
- * True if Java 7 or Java 8 runtime environment
- *
- * @since 4.3
- * @deprecated in 6.4. Java 8+ is required, so this method always returns {@code true}.
- */
- @Deprecated
- public boolean isJavaAtLeast17() {
- return true;
- }
-
public void println(String obj) {
System.out.print(obj);
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/Version.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/Version.java
index 3a0c867afab..9a1e939a64a 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/Version.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/Version.java
@@ -152,14 +152,6 @@ public class Version implements Comparable<Version> {
return new Version(major, minor, patch, DEFAULT_BUILD_NUMBER, DEFAULT_QUALIFIER);
}
- /**
- * @deprecated in 6.3 to avoid ambiguity with build number (see {@link #buildNumber()}
- */
- @Deprecated
- public static Version create(int major, int minor, int patch, String qualifier) {
- return new Version(major, minor, patch, DEFAULT_BUILD_NUMBER, qualifier);
- }
-
private static int parseFieldAsInt(String field) {
if (field.isEmpty()) {
return 0;
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java
index 119da1876b1..3b311f22cce 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java
@@ -64,14 +64,6 @@ public final class ZipUtils {
}
/**
- * @deprecated replaced by {@link #unzip(InputStream, File, Predicate)} in 6.2.
- */
- @Deprecated
- public static File unzip(InputStream stream, File toDir, ZipEntryFilter filter) throws IOException {
- return unzip(stream, toDir, new ZipEntryFilterDelegate(filter));
- }
-
- /**
* Unzip a file to a directory.
*
* @param stream the zip input file
@@ -118,14 +110,6 @@ public final class ZipUtils {
}
/**
- * @deprecated replaced by {@link #unzip(File, File, Predicate)} in 6.2.
- */
- @Deprecated
- public static File unzip(File zip, File toDir, ZipEntryFilter filter) throws IOException {
- return unzip(zip, toDir, new ZipEntryFilterDelegate(filter));
- }
-
- /**
* Unzip a file to a directory.
*
* @param zip the zip file. It must exist.