From 2533b4baaa1af52aee74b73e14f8294637f12bcf Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 12 Jul 2012 00:20:37 +0200 Subject: [PATCH] Declare parameters as non-null by default in org.sonar.api.platform --- .../api/platform/ServerPluginRepository.java | 4 ++-- .../org/sonar/api/platform/package-info.java | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 sonar-plugin-api/src/main/java/org/sonar/api/platform/package-info.java diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/platform/ServerPluginRepository.java b/sonar-plugin-api/src/main/java/org/sonar/api/platform/ServerPluginRepository.java index fd9dd458d0b..2c16f54487e 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/platform/ServerPluginRepository.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/platform/ServerPluginRepository.java @@ -36,8 +36,8 @@ public interface ServerPluginRepository extends PluginRepository, ServerComponen void disable(String pluginKey); /** - * @param plugingKey can not be null + * @param pluginKey can not be null */ - boolean isDisabled(String plugingKey); + boolean isDisabled(String pluginKey); } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/platform/package-info.java b/sonar-plugin-api/src/main/java/org/sonar/api/platform/package-info.java new file mode 100644 index 00000000000..eb0c2fe6511 --- /dev/null +++ b/sonar-plugin-api/src/main/java/org/sonar/api/platform/package-info.java @@ -0,0 +1,23 @@ +/* + * Sonar, open source software quality management tool. + * Copyright (C) 2008-2012 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 + */ +@ParametersAreNonnullByDefault +package org.sonar.api.platform; + +import javax.annotation.ParametersAreNonnullByDefault; \ No newline at end of file -- 2.39.5