From 9de86423ed465f18ebdc4b883cd6d40ee9f373c8 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 21 May 2015 16:17:50 +0200 Subject: [PATCH] Fix quality flaws --- .../computation/ws/ComputationWsAction.java | 3 ++- .../org/sonar/api/checks/package-info.java | 23 +++++++++++++++++++ .../org/sonar/api/component/Perspective.java | 2 +- .../org/sonar/api/server/package-info.java | 23 +++++++++++++++++++ 4 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 sonar-plugin-api/src/main/java/org/sonar/api/checks/package-info.java create mode 100644 sonar-plugin-api/src/main/java/org/sonar/api/server/package-info.java diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/ws/ComputationWsAction.java b/server/sonar-server/src/main/java/org/sonar/server/computation/ws/ComputationWsAction.java index 10ea28e79a9..65edafb7ce4 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/ws/ComputationWsAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/ws/ComputationWsAction.java @@ -26,6 +26,7 @@ import org.sonar.server.ws.WsAction; * Used by {@link ComputationWs} to * loop over all its actions */ -interface ComputationWsAction extends WsAction{ +interface ComputationWsAction extends WsAction { + @Override void define(WebService.NewController controller); } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/checks/package-info.java b/sonar-plugin-api/src/main/java/org/sonar/api/checks/package-info.java new file mode 100644 index 00000000000..4b9367417ab --- /dev/null +++ b/sonar-plugin-api/src/main/java/org/sonar/api/checks/package-info.java @@ -0,0 +1,23 @@ +/* + * 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.api.checks; + +import javax.annotation.ParametersAreNonnullByDefault; diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/component/Perspective.java b/sonar-plugin-api/src/main/java/org/sonar/api/component/Perspective.java index 10bbed9a754..ccc2d5746d5 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/component/Perspective.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/component/Perspective.java @@ -23,5 +23,5 @@ package org.sonar.api.component; * @deprecated since 5.2 */ @Deprecated -public interface Perspective { +public interface Perspective { } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/package-info.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/package-info.java new file mode 100644 index 00000000000..e33e72d1db9 --- /dev/null +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/package-info.java @@ -0,0 +1,23 @@ +/* + * 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.api.server; + +import javax.annotation.ParametersAreNonnullByDefault; -- 2.39.5