diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2024-04-04 12:21:23 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-04-05 20:02:38 +0000 |
commit | 93ac36f7642f2982bd81956d83db233a92f13eb2 (patch) | |
tree | 9cb1c4322586a95dc10b8f8b9762e676be406c05 /server/sonar-webserver-core/src/main | |
parent | 36aac658059ef9fea0698b9903e8ef4242e94b59 (diff) | |
download | sonarqube-93ac36f7642f2982bd81956d83db233a92f13eb2.tar.gz sonarqube-93ac36f7642f2982bd81956d83db233a92f13eb2.zip |
SONAR-13582 Drop 'Language specific parameters' setting
Diffstat (limited to 'server/sonar-webserver-core/src/main')
-rw-r--r-- | server/sonar-webserver-core/src/main/java/org/sonar/server/platform/db/CheckLanguageSpecificParamsAtStartup.java | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/db/CheckLanguageSpecificParamsAtStartup.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/db/CheckLanguageSpecificParamsAtStartup.java deleted file mode 100644 index e194f96afc5..00000000000 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/db/CheckLanguageSpecificParamsAtStartup.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2024 SonarSource SA - * mailto:info 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.server.platform.db; - -import org.sonar.api.Startable; -import org.sonar.api.config.Configuration; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import static org.sonar.api.CoreProperties.LANGUAGE_SPECIFIC_PARAMETERS; - -/** - * Checks if there are any language specific parameters set for calculating technical debt as functionality is deprecated from 9.9. - * If found, it is logged as a warning. This requires to be defined in platform level 4 ({@link org.sonar.server.platform.platformlevel.PlatformLevel4}). - */ -public class CheckLanguageSpecificParamsAtStartup implements Startable { - - private static final Logger LOG = LoggerFactory.getLogger(CheckLanguageSpecificParamsAtStartup.class); - - private final Configuration config; - - public CheckLanguageSpecificParamsAtStartup(Configuration config) { - this.config = config; - } - - @Override - public void start() { - String[] languageSpecificParams = config.getStringArray(LANGUAGE_SPECIFIC_PARAMETERS); - if (languageSpecificParams.length > 0) { - LOG.warn("The development cost used for calculating the technical debt is currently configured with {} language specific parameters [Key: languageSpecificParameters]. " + - "Please be aware that this functionality is deprecated, and will be removed in a future version.", languageSpecificParams.length); - } - } - - @Override - public void stop() { - // do nothing - } - -} |