diff options
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/metric/persistence/MetricDao.java | 2 | ||||
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/metric/db/MetricMapper.java | 2 |
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); } |