aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common
diff options
context:
space:
mode:
authorLéo Geoffroy <leo.geoffroy@sonarsource.com>2023-06-13 10:22:02 +0200
committersonartech <sonartech@sonarsource.com>2023-06-20 13:10:19 +0000
commit1738a073b09ca45a726f9305f355491627cf7a30 (patch)
treee7b2344fead594e50820b466816282a27c7c4fce /server/sonar-server-common
parent02f3b4f569001b840bebdefc28dac44f8d52a973 (diff)
downloadsonarqube-1738a073b09ca45a726f9305f355491627cf7a30.tar.gz
sonarqube-1738a073b09ca45a726f9305f355491627cf7a30.zip
SONAR-19556 Refactor use of DB columns referencing projects or branches for Entities
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/project/Project.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/project/Project.java b/server/sonar-server-common/src/main/java/org/sonar/server/project/Project.java
index 65137bdd543..38a07f8df2b 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/project/Project.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/project/Project.java
@@ -46,6 +46,10 @@ public class Project {
this.tags = tags;
}
+ /**
+ * Should use {@link org.sonar.server.project.Project#fromProjectDtoWithTags(org.sonar.db.project.ProjectDto)} instead
+ */
+ @Deprecated
public static Project from(ComponentDto project) {
return new Project(project.uuid(), project.getKey(), project.name(), project.description(), emptyList());
}