diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-06-28 18:25:13 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-06-30 09:12:12 +0200 |
commit | 9b386a08d6ff5c13e49a05e1df6aaaff7a378045 (patch) | |
tree | 574d49f7372e4652bda4d82c9a992a549501f0ad /sonar-plugin-api/src | |
parent | 0588f9ad0d5885611e6cc47e0b22b3ef50e1d0e7 (diff) | |
download | sonarqube-9b386a08d6ff5c13e49a05e1df6aaaff7a378045.tar.gz sonarqube-9b386a08d6ff5c13e49a05e1df6aaaff7a378045.zip |
SONAR-7853 Stop support of API org.sonar.api.web.RequiredMeasures
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/web/RequiredMeasures.java | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/RequiredMeasures.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/RequiredMeasures.java deleted file mode 100644 index 1544dc44185..00000000000 --- a/sonar-plugin-api/src/main/java/org/sonar/api/web/RequiredMeasures.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonar.api.web; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * <p> - * Annotation used to specify which measures should be available on a snapshot to be able to display a view (page, tab, ...). - * It is possible to give a list of mandatory measures (= if one is not available, the view is not displayed) and/or a list of - * needed measures (only one of them needs to be available). The measures are specified using the metric keys. - * - * <p> - * Example: the DesignPage absolutely requires the "dsm" measure to be fed in order to be displayed, whatever the language. - * The class will define a <code>@RequiredMeasures(allOf={"dsm"})</code> annotation. - * - * - * @since 3.0 - * @deprecated in 4.5. Not supported anymore in source viewer as Ruby on Rails is being dropped. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -@Deprecated -public @interface RequiredMeasures { - - /** - * Lists all the measures that must absolutely to be available on the snapshot in order to display the view. - * @return the list of mandatory measures, identified by their metric key - */ - String[] allOf() default {}; - - /** - * Lists all needed measures required to display the view. If only one of them is available on the snapshot, then the view - * is displayed. - * @return the list of needed measures, identified by their metric key - */ - String[] anyOf() default {}; - -} |