summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-07-29 12:09:43 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-07-29 12:09:43 +0200
commit402f8958a403d94422f38d47cc39aba0f13e8aae (patch)
treee4bac52b9a2927d7e994d9961bacf6d880611db7 /sonar-plugin-api
parent15f5d562a3da55f3702500c1c855f3f9d7a52e2d (diff)
downloadsonarqube-402f8958a403d94422f38d47cc39aba0f13e8aae.tar.gz
sonarqube-402f8958a403d94422f38d47cc39aba0f13e8aae.zip
SONAR-75 Improve i18n API
- The extension point LanguagePack is not required anymore - No error logs when rule description is not available in all locales - Increase code coverage and decrease complexity
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/i18n/LanguagePack.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/LanguagePack.java b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/LanguagePack.java
deleted file mode 100644
index 5b167fd6cad..00000000000
--- a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/LanguagePack.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2008-2011 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar 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.
- *
- * Sonar 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 Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.api.i18n;
-
-import org.sonar.api.BatchExtension;
-import org.sonar.api.ServerExtension;
-
-import java.util.Collection;
-import java.util.Locale;
-
-/**
- *
- * EXPERIMENTAL - this feature will be fully implemented in version 2.10
- *
- *
- * @since 2.9
- */
-public abstract class LanguagePack implements ServerExtension, BatchExtension {
-
- @Override
- public String toString() {
- return new StringBuilder("Language Pack (")
- .append(getPluginKeys().toString())
- .append(getLocales().toString())
- .append(')').toString();
- }
-
- /**
- * @return the pluginKeys
- */
- public abstract Collection<String> getPluginKeys();
-
- /**
- * @return the locales
- */
- public abstract Collection<Locale> getLocales();
-}