aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2021-09-16 12:54:01 +0200
committersonartech <sonartech@sonarsource.com>2021-09-16 20:03:30 +0000
commit34f1ac3955290cba9ba73fd07e98dc7a9fa9c0e5 (patch)
tree57bf88e8a3e2edfd9beeeb1c3251cd851f4058a2 /server/sonar-db-dao
parent3e19b6036b1d3c84119c88f09c9e41d07f48fec0 (diff)
downloadsonarqube-34f1ac3955290cba9ba73fd07e98dc7a9fa9c0e5.tar.gz
sonarqube-34f1ac3955290cba9ba73fd07e98dc7a9fa9c0e5.zip
[NO-JIRA] Fixing Quality Gate
Diffstat (limited to 'server/sonar-db-dao')
-rw-r--r--server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/GroupPermissionNewValue.java2
-rw-r--r--server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/PropertyNewValue.java2
-rw-r--r--server/sonar-db-dao/src/main/java/org/sonar/db/audit/model/UserPermissionNewValue.java4
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;