From: Julien HENRY Date: Tue, 14 Jun 2016 11:42:35 +0000 (+0200) Subject: SONAR-7727 Remove AbstractSourceImporter X-Git-Tag: 6.0-RC1~165 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3da9ab4746aacecbd7fa0f7ae0ebd3cf6fe211d6;p=sonarqube.git SONAR-7727 Remove AbstractSourceImporter --- 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 files, List sourceDirs, boolean unitTest, Charset sourcesEncoding) { - // Do not remove for backward compatibility - } - - protected Resource createResource(File file, List sourceDirs, boolean unitTest) { - return null; - } - - protected boolean isEnabled(Project project) { - return false; - } - - public Language getLanguage() { - return language; - } -}