]> source.dussan.org Git - sonarqube.git/commitdiff
[NO-JIRA] Fix code smells
authorKlaudio Sinani <klaudio.sinani@sonarsource.com>
Tue, 19 Jul 2022 12:08:47 +0000 (14:08 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 19 Jul 2022 20:03:21 +0000 (20:03 +0000)
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v96/package-info.java [new file with mode: 0644]
server/sonar-webserver-auth/src/main/java/org/sonar/server/user/AbstractUserSession.java
server/sonar-webserver-auth/src/main/java/org/sonar/server/usertoken/notification/package-info.java [new file with mode: 0644]
server/sonar-webserver-webapi/src/main/java/org/sonar/server/duplication/ws/ShowResponseBuilder.java

diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v96/package-info.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v96/package-info.java
new file mode 100644 (file)
index 0000000..ace0316
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2022 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.v96;
+
+import javax.annotation.ParametersAreNonnullByDefault;
+
index d361e8b385e278b3322c71b3855e9a574199e957..2a8ea7d25f74548a2a79b36b0992f4071bf91aa5 100644 (file)
@@ -19,7 +19,6 @@
  */
 package org.sonar.server.user;
 
-import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 import java.util.Optional;
diff --git a/server/sonar-webserver-auth/src/main/java/org/sonar/server/usertoken/notification/package-info.java b/server/sonar-webserver-auth/src/main/java/org/sonar/server/usertoken/notification/package-info.java
new file mode 100644 (file)
index 0000000..8765ffa
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2022 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.usertoken.notification;
+
+import javax.annotation.ParametersAreNonnullByDefault;
+
index 07f293a9f1d5fc29e203a8ac24818b4918aa5a4c..46f698e65fbae5ca93ef1b442f3da901d00e35c4 100644 (file)
@@ -92,7 +92,6 @@ public class ShowResponseBuilder {
 
   private void writeFileRefs(DbSession session, Map<String, Reference> refByComponentKey, ShowResponse.Builder response, @Nullable String branch, @Nullable String pullRequest) {
     Map<String, ComponentDto> projectsByUuid = new HashMap<>();
-    Map<String, ComponentDto> parentModulesByUuid = new HashMap<>();
 
     for (Map.Entry<String, Reference> entry : refByComponentKey.entrySet()) {
       Reference ref = entry.getValue();