Skip to content

Commit

Permalink
Merge pull request #887 from guwirth/deprecated-5.6-api
Browse files Browse the repository at this point in the history
mark deprecated SQ 5.6 API parts
  • Loading branch information
guwirth authored Jun 19, 2016
2 parents f746bd6 + 78c3386 commit 66e51ef
Show file tree
Hide file tree
Showing 45 changed files with 164 additions and 164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.rule.CheckFactory;
import org.sonar.api.component.ResourcePerspectives;
import org.sonar.api.component.ResourcePerspectives; //@todo deprecated
import org.sonar.squidbridge.commonrules.api.CommonRulesDecorator; //@todo deprecated CommonRulesDecorator

public class CxxCommonRulesDecorator extends CommonRulesDecorator { //@todo deprecated CommonRulesDecorator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import net.sourceforge.pmd.cpd.Tokenizer; //@todo deprecated

import org.sonar.api.batch.AbstractCpdMapping;
import org.sonar.api.batch.AbstractCpdMapping; //@todo deprecated
import org.sonar.api.resources.Language;
import org.sonar.api.batch.fs.FileSystem;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.Arrays;

import org.sonar.api.PropertyType;
import org.sonar.api.SonarPlugin;
import org.sonar.api.SonarPlugin; //@todo deprecated
import org.sonar.api.config.PropertyDefinition;
import org.sonar.api.resources.Qualifiers;
import org.sonar.plugins.cxx.compiler.CxxCompilerGccParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import java.util.List;
import java.util.Objects;

import org.sonar.api.batch.SensorContext;
import org.sonar.api.resources.Project;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.resources.Project; //@todo deprecated

/**
* The interface a compiler parser has to implement in order to be used by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
import java.util.LinkedList;
import java.util.List;

import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.component.ResourcePerspectives;
import org.sonar.api.component.ResourcePerspectives; //@todo deprecated
import org.sonar.api.config.Settings;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.plugins.cxx.utils.CxxMetrics;
import org.sonar.plugins.cxx.utils.CxxReportSensor;
import org.sonar.plugins.cxx.utils.CxxUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import java.util.Scanner;
import java.util.regex.Pattern;
import java.util.regex.MatchResult;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.resources.Project;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.resources.Project; //@todo deprecated

import org.sonar.plugins.cxx.utils.CxxUtils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@

import org.codehaus.staxmate.in.SMHierarchicCursor;
import org.codehaus.staxmate.in.SMInputCursor;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.measures.CoverageMeasuresBuilder; //@todo deprecated
import org.sonar.api.resources.Project;
import org.sonar.api.utils.StaxParser;
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.api.utils.StaxParser; //@todo deprecated
import org.sonar.plugins.cxx.utils.CxxUtils;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

import org.codehaus.staxmate.in.SMHierarchicCursor;
import org.codehaus.staxmate.in.SMInputCursor;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.measures.CoverageMeasuresBuilder; //@todo deprecated
import org.sonar.api.resources.Project;
import org.sonar.api.utils.StaxParser;
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.api.utils.StaxParser; //@todo deprecated
import org.sonar.plugins.cxx.utils.CxxUtils;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
import java.util.Map;

import javax.xml.stream.XMLStreamException;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated

import org.sonar.api.measures.CoverageMeasuresBuilder; //@todo deprecated
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Project; //@todo deprecated

/**
* The interface a coverage report parser has to implement in order to be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@

import javax.xml.stream.XMLStreamException;

import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.fs.FilePredicates;
import org.sonar.api.batch.fs.InputFile;
import org.sonar.api.config.Settings;
import org.sonar.api.measures.CoreMetrics;
import org.sonar.api.measures.CoverageMeasuresBuilder; //@todo deprecated CoverageMeasuresBuilder
import org.sonar.api.measures.Measure;
import org.sonar.api.measures.Measure; //@todo deprecated
import org.sonar.api.measures.Metric;
import org.sonar.api.measures.PropertiesBuilder;
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Resource;
import org.sonar.api.measures.PropertiesBuilder; //@todo deprecated
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.api.resources.Resource; //@todo deprecated
import org.sonar.plugins.cxx.CxxLanguage;
import org.sonar.plugins.cxx.utils.CxxReportSensor;
import org.sonar.plugins.cxx.utils.CxxUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

import java.io.File;

import org.sonar.api.batch.SensorContext;
import org.sonar.api.resources.Project;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.resources.Project; //@todo deprecated

public interface CppcheckParser {

void processReport(final Project project, SensorContext context, File report)
void processReport(final Project project, SensorContext context, File report) //@todo deprecated Project, SensorContext
throws javax.xml.stream.XMLStreamException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

import org.codehaus.staxmate.in.SMHierarchicCursor;
import org.codehaus.staxmate.in.SMInputCursor;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.resources.Project;
import org.sonar.api.utils.StaxParser;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.api.utils.StaxParser; //@todo deprecated
import org.sonar.plugins.cxx.utils.CxxUtils;
import org.sonar.plugins.cxx.utils.EmptyReportException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@

import javax.xml.stream.XMLStreamException;

import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.component.ResourcePerspectives;
import org.sonar.api.component.ResourcePerspectives; //@todo deprecated
import org.sonar.api.config.Settings;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.plugins.cxx.utils.CxxMetrics;
import org.sonar.plugins.cxx.utils.CxxReportSensor;
import org.sonar.plugins.cxx.utils.CxxUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
import java.io.File;
import java.io.IOException;

import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.fs.InputFile;
import org.sonar.api.component.ResourcePerspectives;
import org.sonar.api.component.ResourcePerspectives; //@todo deprecated
import org.sonar.api.config.Settings;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.plugins.cxx.drmemory.DrMemoryParser.DrMemoryError;
import org.sonar.plugins.cxx.drmemory.DrMemoryParser.DrMemoryError.Location;
import org.sonar.plugins.cxx.utils.CxxMetrics;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@

import org.codehaus.staxmate.in.SMHierarchicCursor;
import org.codehaus.staxmate.in.SMInputCursor;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.component.ResourcePerspectives;
import org.sonar.api.component.ResourcePerspectives; //@todo deprecated
import org.sonar.api.config.Settings;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.resources.Project;
import org.sonar.api.utils.StaxParser;
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.api.utils.StaxParser; //@todo deprecated
import org.sonar.plugins.cxx.utils.CxxMetrics;
import org.sonar.plugins.cxx.utils.CxxReportSensor;
import org.sonar.plugins.cxx.utils.CxxUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@

import org.jdom.Element;
import org.jdom.input.SAXBuilder;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.component.ResourcePerspectives;
import org.sonar.api.component.ResourcePerspectives; //@todo deprecated
import org.sonar.api.config.Settings;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.plugins.cxx.utils.CxxMetrics;
import org.sonar.plugins.cxx.utils.CxxReportSensor;
import org.sonar.plugins.cxx.utils.CxxUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@

import javax.annotation.Nullable;

import org.sonar.api.batch.Sensor;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.Sensor; //@todo deprecated
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.fs.FilePredicates;
import org.sonar.api.batch.fs.FilePredicate;
import org.sonar.api.batch.fs.InputFile;
import org.sonar.api.batch.rule.ActiveRules;
import org.sonar.api.batch.rule.CheckFactory;
import org.sonar.api.component.ResourcePerspectives;
import org.sonar.api.component.ResourcePerspectives; //@todo deprecated
import org.sonar.api.component.Perspective; //@todo deprecated
import org.sonar.api.config.Settings;
import org.sonar.api.issue.Issuable;
import org.sonar.api.issue.Issue;
import org.sonar.api.measures.CoreMetrics;
import org.sonar.api.measures.Measure;
import org.sonar.api.measures.PersistenceMode;
import org.sonar.api.measures.Measure; //@todo deprecated
import org.sonar.api.measures.PersistenceMode; //@todo deprecated
import org.sonar.api.measures.RangeDistributionBuilder; //@todo deprecated
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.cxx.CxxAstScanner;
import org.sonar.cxx.CxxConfiguration;
import org.sonar.cxx.api.CxxMetric;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@
import java.util.Set;
import java.util.Map;

import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.rule.ActiveRules;
import org.sonar.api.batch.rule.ActiveRule;
import org.sonar.api.batch.fs.InputFile;
import org.sonar.api.component.ResourcePerspectives;
import org.sonar.api.component.ResourcePerspectives; //@todo deprecated
import org.sonar.api.design.Dependency; //@todo deprecated
import org.sonar.api.issue.Issuable;
import org.sonar.api.issue.Issue;
import org.sonar.api.measures.CoreMetrics;
import org.sonar.api.measures.Measure;
import org.sonar.api.measures.Measure; //@todo deprecated
import org.sonar.api.measures.Metric;
import org.sonar.api.measures.PersistenceMode;
import org.sonar.api.resources.Directory;
import org.sonar.api.resources.File;
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Resource;
import org.sonar.api.measures.PersistenceMode; //@todo deprecated
import org.sonar.api.resources.Directory; //@todo deprecated
import org.sonar.api.resources.File; //@todo deprecated
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.api.resources.Resource; //@todo deprecated
import org.sonar.cxx.checks.CycleBetweenPackagesCheck;
import org.sonar.cxx.checks.DuplicatedIncludeCheck;
import org.sonar.cxx.preprocessor.CxxPreprocessor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.HashSet;
import java.util.Set;

import org.sonar.api.resources.Directory;
import org.sonar.api.resources.Directory; //@todo deprecated
import org.sonar.graph.Edge;

class DirectoryEdge implements Edge<Directory> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
package org.sonar.plugins.cxx.squid;

import org.sonar.api.resources.File;
import org.sonar.api.resources.File; //@todo deprecated
import org.sonar.graph.Edge;

class FileEdge implements Edge<File> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@

import org.sonar.api.batch.CoverageExtension; //@todo deprecated
import org.sonar.api.batch.DependsUpon;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.fs.FilePredicates;
import org.sonar.api.config.Settings;
import org.sonar.api.measures.CoreMetrics;
import org.sonar.api.measures.Measure;
import org.sonar.api.resources.Project;
import org.sonar.api.measures.Measure; //@todo deprecated
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.api.utils.ParsingUtils;
import org.sonar.api.utils.StaxParser;
import org.sonar.api.utils.StaxParser; //@todo deprecated
import org.sonar.cxx.CxxAstScanner;
import org.sonar.cxx.CxxConfiguration;
import org.sonar.plugins.cxx.CxxLanguage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import org.codehaus.staxmate.in.SMHierarchicCursor;
import org.codehaus.staxmate.in.SMInputCursor;
import org.sonar.api.utils.ParsingUtils;
import org.sonar.api.utils.StaxParser.XmlStreamHandler;
import org.sonar.api.utils.StaxParser.XmlStreamHandler; //@todo deprecated StaxParser
import org.sonar.plugins.cxx.utils.EmptyReportException;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
import java.util.Set;
import org.apache.commons.io.FilenameUtils;
import org.apache.tools.ant.DirectoryScanner;
import org.sonar.api.batch.Sensor;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.Sensor; //@todo deprecated
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.fs.InputFile;
import org.sonar.api.component.ResourcePerspectives;
import org.sonar.api.component.ResourcePerspectives; //@todo deprecated
import org.sonar.api.issue.Issuable;
import org.sonar.api.issue.Issue;
import org.sonar.api.measures.Measure;
import org.sonar.api.measures.Measure; //@todo deprecated
import org.sonar.api.measures.Metric;
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Resource;
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.api.resources.Resource; //@todo deprecated
import org.sonar.api.rule.RuleKey;
import org.sonar.plugins.cxx.CxxLanguage;
import org.sonar.api.config.Settings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
import java.io.File;
import java.util.Set;

import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.component.ResourcePerspectives;
import org.sonar.api.component.ResourcePerspectives; //@todo deprecated
import org.sonar.api.config.Settings;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.plugins.cxx.utils.CxxMetrics;
import org.sonar.plugins.cxx.utils.CxxReportSensor;
import org.sonar.plugins.cxx.utils.CxxUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

import org.codehaus.staxmate.in.SMHierarchicCursor;
import org.codehaus.staxmate.in.SMInputCursor;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.resources.Project;
import org.sonar.api.utils.StaxParser;
import org.sonar.api.batch.SensorContext; //@todo deprecated
import org.sonar.api.resources.Project; //@todo deprecated
import org.sonar.api.utils.StaxParser; //@todo deprecated
import org.sonar.plugins.cxx.utils.EmptyReportException;

class ValgrindReportParser {
Expand Down
Loading

0 comments on commit 66e51ef

Please sign in to comment.