From dc41ad75cb32f1ff59b2ec61905bdbc2dc581dc5 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 20 Feb 2014 19:03:30 +0100 Subject: [PATCH] SONAR-926 Mark FileQuery as deprecated --- .../sonar/api/scan/filesystem/FileQuery.java | 22 +++---------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/scan/filesystem/FileQuery.java b/sonar-plugin-api/src/main/java/org/sonar/api/scan/filesystem/FileQuery.java index f1adc52953f..342fd082b8a 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/scan/filesystem/FileQuery.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/scan/filesystem/FileQuery.java @@ -36,17 +36,16 @@ import java.util.Set; /** * @since 3.5 + * @deprecated in 4.2. Replaced by {@link org.sonar.api.batch.fs.FileSystem} and + * {@link org.sonar.api.batch.fs.FilePredicate} */ +@Deprecated public class FileQuery { private final ListMultimap attributes = ArrayListMultimap.create(); private final Set inclusions = Sets.newHashSet(); private final Set exclusions = Sets.newHashSet(); - /** - * @deprecated since 4.2 use {@link #onMain()} or {@link #onTest()} - */ - @Deprecated public static FileQuery on(FileType... types) { FileQuery query = new FileQuery(); for (FileType type : types) { @@ -55,17 +54,6 @@ public class FileQuery { return query; } - /** - * @since 4.2 - */ - public static FileQuery all() { - return on(); - } - - /** - * @deprecated since 4.2 use {@link #onMain()} - */ - @Deprecated public static FileQuery onSource() { return onMain(); } @@ -97,10 +85,6 @@ public class FileQuery { return attributes.asMap(); } - /** - * @deprecated since 4.2 use {@link #typeAttributes()} - */ - @Deprecated public Collection types() { return Collections2.transform(attributes.get("TYPE"), new Function() { @Override -- 2.39.5