From 24cd3f3a91720995ec076ac0073665ba73f27ade Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Wed, 19 Aug 2015 14:17:02 +0200 Subject: [PATCH] Remove class deprecated since v4.2 --- .../DefaultResourceCreationLock.java | 40 ------------------- .../deprecated/components/package-info.java | 23 ----------- .../sonar/api/batch/ResourceCreationLock.java | 39 ------------------ 3 files changed, 102 deletions(-) delete mode 100644 sonar-batch/src/main/java/org/sonar/batch/deprecated/components/DefaultResourceCreationLock.java delete mode 100644 sonar-batch/src/main/java/org/sonar/batch/deprecated/components/package-info.java delete mode 100644 sonar-plugin-api/src/main/java/org/sonar/api/batch/ResourceCreationLock.java diff --git a/sonar-batch/src/main/java/org/sonar/batch/deprecated/components/DefaultResourceCreationLock.java b/sonar-batch/src/main/java/org/sonar/batch/deprecated/components/DefaultResourceCreationLock.java deleted file mode 100644 index 52ca67c348e..00000000000 --- a/sonar-batch/src/main/java/org/sonar/batch/deprecated/components/DefaultResourceCreationLock.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube 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. - * - * SonarQube 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.batch.deprecated.components; - -import org.sonar.api.batch.ResourceCreationLock; - -/** - * This lock is used to ensure that Sonar resources (files, packages, directories) are not created by buggy plugins - * when saving measures/violations on unknown resources. - * - * @since 2.3 - * @deprecated not used since 4.2 - */ -@Deprecated -public final class DefaultResourceCreationLock implements ResourceCreationLock { - - @Override - public void lock() { - // does nothing since 4.2. Creation of components (ex-resources) is - // the responsibility of core, not plugins - } - -} diff --git a/sonar-batch/src/main/java/org/sonar/batch/deprecated/components/package-info.java b/sonar-batch/src/main/java/org/sonar/batch/deprecated/components/package-info.java deleted file mode 100644 index 65baa1e8409..00000000000 --- a/sonar-batch/src/main/java/org/sonar/batch/deprecated/components/package-info.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube 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. - * - * SonarQube 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. - */ -@ParametersAreNonnullByDefault -package org.sonar.batch.deprecated.components; - -import javax.annotation.ParametersAreNonnullByDefault; diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/ResourceCreationLock.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/ResourceCreationLock.java deleted file mode 100644 index 296f6430ed8..00000000000 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/ResourceCreationLock.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube 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. - * - * SonarQube 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; - -/** - * This lock is used to ensure that Sonar resources (files, packages, directories) are not created by buggy plugins - * when saving measures/violations on unknown resources. - * - * @since 2.3 - * @deprecated since 4.2. File system is immutable and does not require this class anymore. - */ -@Deprecated -@BatchSide -public interface ResourceCreationLock { - - /** - * Forbids the creation of resources when saving violations and measures. By default it's unlocked, so only warnings - * are logged. When locked, then an exception is thrown. - */ - void lock(); - -} -- 2.39.5