diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-01-15 08:27:11 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-01-15 08:27:11 +0100 |
commit | bb22ca234e9c08da5ee9cff94d32db983322bdac (patch) | |
tree | 4ceba2727e01ba733e51e47877a37490ea9a4e69 /sonar-core/src | |
parent | eec173a9c939e0620ccbfd72ed00cb3286777cd7 (diff) | |
download | sonarqube-bb22ca234e9c08da5ee9cff94d32db983322bdac.tar.gz sonarqube-bb22ca234e9c08da5ee9cff94d32db983322bdac.zip |
Fix quality flaws
Diffstat (limited to 'sonar-core/src')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/qualityprofile/db/QualityProfileDao.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/QualityProfileDao.java b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/QualityProfileDao.java index caa6c7c2eac..083b888a1cf 100644 --- a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/QualityProfileDao.java +++ b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/QualityProfileDao.java @@ -66,7 +66,7 @@ public class QualityProfileDao implements ServerComponent { } } - public void delete(Integer id) { + public void delete(int id) { SqlSession session = mybatis.openSession(); try { session.getMapper(QualityProfileMapper.class).delete(id); @@ -94,7 +94,7 @@ public class QualityProfileDao implements ServerComponent { } } - public List<QualityProfileDto> selectByProject(Long projectId, String propKeyPrefix) { + public List<QualityProfileDto> selectByProject(long projectId, String propKeyPrefix) { SqlSession session = mybatis.openSession(); try { return session.getMapper(QualityProfileMapper.class).selectByProject(projectId, propKeyPrefix); @@ -113,12 +113,12 @@ public class QualityProfileDao implements ServerComponent { } @CheckForNull - public QualityProfileDto selectById(Integer id, SqlSession session) { + public QualityProfileDto selectById(int id, SqlSession session) { return session.getMapper(QualityProfileMapper.class).selectById(id); } @CheckForNull - public QualityProfileDto selectById(Integer id) { + public QualityProfileDto selectById(int id) { SqlSession session = mybatis.openSession(); try { return selectById(id, session); @@ -128,12 +128,12 @@ public class QualityProfileDao implements ServerComponent { } @CheckForNull - public QualityProfileDto selectParent(Integer childId, SqlSession session) { + public QualityProfileDto selectParent(int childId, SqlSession session) { return session.getMapper(QualityProfileMapper.class).selectParent(childId); } @CheckForNull - public QualityProfileDto selectParent(Integer childId) { + public QualityProfileDto selectParent(int childId) { SqlSession session = mybatis.openSession(); try { return selectParent(childId, session); |