From 475d5c661c06b1f8cfcb3c04bf90209c698465c9 Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Fri, 9 Jul 2021 09:34:25 +0200 Subject: [PATCH] Fix code smell: add package-info.java --- .../sonar/alm/client/azure/package-info.java | 24 +++++++++++++++++++ .../bitbucketcloud/package-info.java | 24 +++++++++++++++++++ .../org/sonar/alm/client/package-info.java | 24 +++++++++++++++++++ .../org/sonar/ce/security/package-info.java | 24 +++++++++++++++++++ .../migration/version/v91/package-info.java | 24 +++++++++++++++++++ .../server/almsettings/package-info.java | 24 +++++++++++++++++++ .../authentication/purge/package-info.java | 24 +++++++++++++++++++ .../sonar/server/plugins/package-info.java | 24 +++++++++++++++++++ .../validator/package-info.java | 24 +++++++++++++++++++ .../server/almsettings/ws/package-info.java | 24 +++++++++++++++++++ .../sonar/server/projecttag/package-info.java | 24 +++++++++++++++++++ .../org/sonar/server/text/package-info.java | 24 +++++++++++++++++++ .../org/sonar/core/language/package-info.java | 24 +++++++++++++++++++ 13 files changed, 312 insertions(+) create mode 100644 server/sonar-alm-client/src/main/java/org/sonar/alm/client/azure/package-info.java create mode 100644 server/sonar-alm-client/src/main/java/org/sonar/alm/client/bitbucket/bitbucketcloud/package-info.java create mode 100644 server/sonar-alm-client/src/main/java/org/sonar/alm/client/package-info.java create mode 100644 server/sonar-ce/src/main/java/org/sonar/ce/security/package-info.java create mode 100644 server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v91/package-info.java create mode 100644 server/sonar-server-common/src/main/java/org/sonar/server/almsettings/package-info.java create mode 100644 server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/purge/package-info.java create mode 100644 server/sonar-webserver-core/src/main/java/org/sonar/server/plugins/package-info.java create mode 100644 server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/validator/package-info.java create mode 100644 server/sonar-webserver-webapi/src/main/java/org/sonar/server/almsettings/ws/package-info.java create mode 100644 server/sonar-webserver-webapi/src/main/java/org/sonar/server/projecttag/package-info.java create mode 100644 server/sonar-webserver-webapi/src/main/java/org/sonar/server/text/package-info.java create mode 100644 sonar-core/src/main/java/org/sonar/core/language/package-info.java diff --git a/server/sonar-alm-client/src/main/java/org/sonar/alm/client/azure/package-info.java b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/azure/package-info.java new file mode 100644 index 00000000000..81ebe83439e --- /dev/null +++ b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/azure/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.alm.client.azure; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-alm-client/src/main/java/org/sonar/alm/client/bitbucket/bitbucketcloud/package-info.java b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/bitbucket/bitbucketcloud/package-info.java new file mode 100644 index 00000000000..fb48acfb622 --- /dev/null +++ b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/bitbucket/bitbucketcloud/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.alm.client.bitbucket.bitbucketcloud; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-alm-client/src/main/java/org/sonar/alm/client/package-info.java b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/package-info.java new file mode 100644 index 00000000000..e26e921d22d --- /dev/null +++ b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.alm.client; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/security/package-info.java b/server/sonar-ce/src/main/java/org/sonar/ce/security/package-info.java new file mode 100644 index 00000000000..5aa7b3790b0 --- /dev/null +++ b/server/sonar-ce/src/main/java/org/sonar/ce/security/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.ce.security; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v91/package-info.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v91/package-info.java new file mode 100644 index 00000000000..de9b118fce0 --- /dev/null +++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v91/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.server.platform.db.migration.version.v91; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/almsettings/package-info.java b/server/sonar-server-common/src/main/java/org/sonar/server/almsettings/package-info.java new file mode 100644 index 00000000000..bc5d21a4c70 --- /dev/null +++ b/server/sonar-server-common/src/main/java/org/sonar/server/almsettings/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.server.almsettings; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/purge/package-info.java b/server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/purge/package-info.java new file mode 100644 index 00000000000..a283a899fa1 --- /dev/null +++ b/server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/purge/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.server.authentication.purge; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/plugins/package-info.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/plugins/package-info.java new file mode 100644 index 00000000000..d8265b1c1d5 --- /dev/null +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/plugins/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.server.plugins; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/validator/package-info.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/validator/package-info.java new file mode 100644 index 00000000000..e5e18e2600c --- /dev/null +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/validator/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.server.almintegration.validator; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almsettings/ws/package-info.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almsettings/ws/package-info.java new file mode 100644 index 00000000000..ee0a2fc8abb --- /dev/null +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almsettings/ws/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.server.almsettings.ws; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/projecttag/package-info.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/projecttag/package-info.java new file mode 100644 index 00000000000..7776ad7c749 --- /dev/null +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/projecttag/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.server.projecttag; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/text/package-info.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/text/package-info.java new file mode 100644 index 00000000000..2c793b4e8fc --- /dev/null +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/text/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.server.text; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/sonar-core/src/main/java/org/sonar/core/language/package-info.java b/sonar-core/src/main/java/org/sonar/core/language/package-info.java new file mode 100644 index 00000000000..56f5415bdc7 --- /dev/null +++ b/sonar-core/src/main/java/org/sonar/core/language/package-info.java @@ -0,0 +1,24 @@ +/* + * SonarQube + * Copyright (C) 2009-2021 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. + */ +@ParametersAreNonnullByDefault +package org.sonar.core.language; + +import javax.annotation.ParametersAreNonnullByDefault; + -- 2.39.5