From: Simon Brandhof Date: Thu, 20 Feb 2014 18:03:30 +0000 (+0100) Subject: SONAR-926 Mark FileQuery as deprecated X-Git-Tag: 4.2~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc41ad75cb32f1ff59b2ec61905bdbc2dc581dc5;p=sonarqube.git SONAR-926 Mark FileQuery as deprecated --- 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