From 34f1ac3955290cba9ba73fd07e98dc7a9fa9c0e5 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Thu, 16 Sep 2021 12:54:01 +0200 Subject: [PATCH] [NO-JIRA] Fixing Quality Gate --- .../org/sonar/db/audit/model/GroupPermissionNewValue.java | 2 +- .../main/java/org/sonar/db/audit/model/PropertyNewValue.java | 2 +- .../java/org/sonar/db/audit/model/UserPermissionNewValue.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/GroupPermissionNewValue.java b/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/GroupPermissionNewValue.java index 1577998751b..658847c3247 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/GroupPermissionNewValue.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/GroupPermissionNewValue.java @@ -41,7 +41,7 @@ public class GroupPermissionNewValue extends PermissionNewValue { this(null, componentUuid, componentKey, componentName, role, groupUuid, groupName, qualifier, null); } - public GroupPermissionNewValue(GroupPermissionDto dto, String componentKey, String qualifier, PermissionTemplateDto permissionTemplate) { + public GroupPermissionNewValue(GroupPermissionDto dto, @Nullable String componentKey, @Nullable String qualifier, @Nullable PermissionTemplateDto permissionTemplate) { this(dto.getUuid(), dto.getComponentUuid(), componentKey, dto.getComponentName(), dto.getRole(), dto.getGroupUuid(), dto.getGroupName(), qualifier, permissionTemplate); } diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/PropertyNewValue.java b/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/PropertyNewValue.java index 1ab794efc6f..9742989e89b 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/PropertyNewValue.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/PropertyNewValue.java @@ -48,7 +48,7 @@ public class PropertyNewValue extends NewValue { @Nullable private String qualifier; - public PropertyNewValue(UserPropertyDto userPropertyDto, String login) { + public PropertyNewValue(UserPropertyDto userPropertyDto, @Nullable String login) { this.propertyKey = userPropertyDto.getKey(); this.userUuid = userPropertyDto.getUserUuid(); this.userLogin = login; diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/UserPermissionNewValue.java b/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/UserPermissionNewValue.java index 83941d59fd0..1f0826f1ba1 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/UserPermissionNewValue.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/UserPermissionNewValue.java @@ -43,8 +43,8 @@ public class UserPermissionNewValue extends PermissionNewValue { this(null, null, null, null, userId, qualifier); } - public UserPermissionNewValue(String role, String componentUuid, String componentKey, String componentName, UserId userId, - String qualifier) { + public UserPermissionNewValue(@Nullable String role, @Nullable String componentUuid, @Nullable String componentKey, @Nullable String componentName, + UserId userId, @Nullable String qualifier) { super(null, componentUuid, componentKey, componentName, role, qualifier, null); this.userUuid = userId != null ? userId.getUuid() : null; this.userLogin = userId != null ? userId.getLogin() : null; -- 2.39.5