aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-06-12 10:01:29 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-06-12 10:23:40 +0200
commitaa3d18a893542686af2ebf74feea814018c91307 (patch)
treef14820eddc28f46e838b393ce253f97629a183d8
parent4237ee5b6b0ed273701ac8df573dfccefe78a8a4 (diff)
downloadsonarqube-aa3d18a893542686af2ebf74feea814018c91307.tar.gz
sonarqube-aa3d18a893542686af2ebf74feea814018c91307.zip
MetricDao.selectNullableById should really take a long, not a int
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/metric/persistence/MetricDao.java2
-rw-r--r--sonar-core/src/main/java/org/sonar/core/metric/db/MetricMapper.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/metric/persistence/MetricDao.java b/server/sonar-server/src/main/java/org/sonar/server/metric/persistence/MetricDao.java
index a9f669dda25..a38c20a0924 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/metric/persistence/MetricDao.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/metric/persistence/MetricDao.java
@@ -114,7 +114,7 @@ public class MetricDao implements DaoComponent {
mapper(session).update(metric);
}
- public MetricDto selectNullableById(DbSession session, int id) {
+ public MetricDto selectNullableById(DbSession session, long id) {
return mapper(session).selectById(id);
}
}
diff --git a/sonar-core/src/main/java/org/sonar/core/metric/db/MetricMapper.java b/sonar-core/src/main/java/org/sonar/core/metric/db/MetricMapper.java
index 619670bfab4..dd216603d05 100644
--- a/sonar-core/src/main/java/org/sonar/core/metric/db/MetricMapper.java
+++ b/sonar-core/src/main/java/org/sonar/core/metric/db/MetricMapper.java
@@ -46,5 +46,5 @@ public interface MetricMapper {
void update(MetricDto metric);
- MetricDto selectById(int id);
+ MetricDto selectById(long id);
}