diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2021-09-16 12:54:01 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-09-16 20:03:30 +0000 |
commit | 34f1ac3955290cba9ba73fd07e98dc7a9fa9c0e5 (patch) | |
tree | 57bf88e8a3e2edfd9beeeb1c3251cd851f4058a2 /server/sonar-db-dao | |
parent | 3e19b6036b1d3c84119c88f09c9e41d07f48fec0 (diff) | |
download | sonarqube-34f1ac3955290cba9ba73fd07e98dc7a9fa9c0e5.tar.gz sonarqube-34f1ac3955290cba9ba73fd07e98dc7a9fa9c0e5.zip |
[NO-JIRA] Fixing Quality Gate
Diffstat (limited to 'server/sonar-db-dao')
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; |