From 6fdd43039ff5e219b731528bb400dac1705e04b1 Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Fri, 29 Aug 2014 16:48:30 +0200 Subject: [PATCH] SONAR-5530 - IssueDao server uses UUID as key --- .../src/main/java/org/sonar/server/issue/db/IssueDao.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/db/IssueDao.java b/server/sonar-server/src/main/java/org/sonar/server/issue/db/IssueDao.java index 5f893e73ff1..2365a93b602 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/issue/db/IssueDao.java +++ b/server/sonar-server/src/main/java/org/sonar/server/issue/db/IssueDao.java @@ -22,13 +22,12 @@ package org.sonar.server.issue.db; import com.google.common.annotations.VisibleForTesting; import org.sonar.api.utils.System2; import org.sonar.core.issue.db.IssueDto; -import org.sonar.core.issue.db.IssueKey; import org.sonar.core.issue.db.IssueMapper; import org.sonar.core.persistence.DaoComponent; import org.sonar.core.persistence.DbSession; import org.sonar.server.db.BaseDao; -public class IssueDao extends BaseDao implements DaoComponent { +public class IssueDao extends BaseDao implements DaoComponent { public IssueDao() { this(System2.INSTANCE); @@ -40,8 +39,7 @@ public class IssueDao extends BaseDao implement } @Override - protected IssueDto doGetNullableByKey(DbSession session, IssueKey key) { - //return mapper(session).selectByKey(key); - return null; + protected IssueDto doGetNullableByKey(DbSession session, String key) { + return mapper(session).selectByKey(key); } } -- 2.39.5