* @param violationQuery
* the request parameters specified as a {@link ViolationQuery}
* @return the list of violations that match those parameters
+ * @deprecated in 3.6, replaced by {@link org.sonar.api.issue.Issuable}
*/
+ @Deprecated
List<Violation> getViolations(ViolationQuery violationQuery);
/**
* Returns all the active (= non switched-off) violations found on the current resource.
*
* @return the list of violations
+ * @deprecated in 3.6, replaced by {@link org.sonar.api.issue.Issuable}
*/
+ @Deprecated
List<Violation> getViolations();
/**
*
* @since 2.5
* @param force allows to force creation of violation even if it was suppressed by {@link org.sonar.api.rules.ViolationFilter}
+ * @deprecated in 3.6, replaced by {@link org.sonar.api.issue.Issuable}
*/
+ @Deprecated
DecoratorContext saveViolation(Violation violation, boolean force);
/**
* Save a coding rule violation. The decorator which calls this method must be depended upon BatchBarriers.END_OF_VIOLATIONS_GENERATION.
+ * @deprecated in 3.6, replaced by {@link org.sonar.api.issue.Issuable}
*/
+ @Deprecated
DecoratorContext saveViolation(Violation violation);
// EVENTS
*/
package org.sonar.api.batch;
+import com.google.common.annotations.Beta;
import org.sonar.api.batch.fs.InputFile;
import org.sonar.api.design.Dependency;
import org.sonar.api.measures.Measure;
/**
* @since 1.10
- * @deprecated since 4.5
*/
-@Deprecated
public interface SensorContext {
/**
*
* @param force allows to force creation of violation even if it was supressed by {@link org.sonar.api.rules.ViolationFilter}
* @since 2.5
+ * @deprecated in 3.6, replaced by {@link org.sonar.api.issue.Issuable}
*/
+ @Deprecated
void saveViolation(Violation violation, boolean force);
/**
* Save a coding rule violation.
+ * @deprecated in 3.6, replaced by {@link org.sonar.api.issue.Issuable}
*/
+ @Deprecated
void saveViolation(Violation violation);
/**
* Saves a list of violations.
+ * @deprecated in 3.6, replaced by {@link org.sonar.api.issue.Issuable}
*/
+ @Deprecated
void saveViolations(Collection<Violation> violations);
// ----------- DEPENDENCIES BETWEEN RESOURCES --------------
void deleteEvent(Event event);
/**
- * Experimental
+ * Experimental - do not use
* @since 4.2
*/
+ @Beta
Measure saveMeasure(InputFile inputFile, Metric metric, Double value);
/**
- * Experimental
+ * Experimental - do not use
* @since 4.2
*/
+ @Beta
Measure saveMeasure(InputFile inputFile, Measure measure);
}