aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <henryju@yahoo.fr>2016-06-14 13:42:35 +0200
committerJulien HENRY <henryju@yahoo.fr>2016-07-05 14:00:16 +0200
commit3da9ab4746aacecbd7fa0f7ae0ebd3cf6fe211d6 (patch)
treea81cd6f8927cb5b8ba206ecddd0e7d88f48a0159 /sonar-plugin-api
parent0ba54087a18539d0fbe4d8e985e18b01bfe67757 (diff)
downloadsonarqube-3da9ab4746aacecbd7fa0f7ae0ebd3cf6fe211d6.tar.gz
sonarqube-3da9ab4746aacecbd7fa0f7ae0ebd3cf6fe211d6.zip
SONAR-7727 Remove AbstractSourceImporter
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/AbstractSourceImporter.java72
1 files changed, 0 insertions, 72 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/AbstractSourceImporter.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/AbstractSourceImporter.java
deleted file mode 100644
index 637481f9ebc..00000000000
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/AbstractSourceImporter.java
+++ /dev/null
@@ -1,72 +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.batch;
-
-import java.io.File;
-import java.nio.charset.Charset;
-import java.util.List;
-import org.sonar.api.resources.Language;
-import org.sonar.api.resources.Project;
-import org.sonar.api.resources.Resource;
-
-/**
- * @since 1.10
- * @deprecated since 4.2 Component indexing and source import are done by core and this extension is not used.
- */
-@Deprecated
-@Phase(name = Phase.Name.PRE)
-public abstract class AbstractSourceImporter implements Sensor {
-
- private Language language;
-
- public AbstractSourceImporter(Language language) {
- this.language = language;
- }
-
- @Override
- public boolean shouldExecuteOnProject(Project project) {
- return false;
- }
-
- @Override
- public void analyse(Project project, SensorContext context) {
- // Do not remove for backward compatibility
- }
-
- protected void onFinished() {
-
- }
-
- protected void parseDirs(SensorContext context, List<File> files, List<File> sourceDirs, boolean unitTest, Charset sourcesEncoding) {
- // Do not remove for backward compatibility
- }
-
- protected Resource createResource(File file, List<File> sourceDirs, boolean unitTest) {
- return null;
- }
-
- protected boolean isEnabled(Project project) {
- return false;
- }
-
- public Language getLanguage() {
- return language;
- }
-}