diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-03 15:08:07 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-03 15:21:15 +0200 |
commit | dd5fd97c77396e9d08a7ad4d0186e80ebd67f714 (patch) | |
tree | c77cabfb3f4b54fb7e3e16d5245b3e4174e6e569 /sonar-core | |
parent | 6275bb696f2afa523621a98a6f535e4c92ca0c4a (diff) | |
download | sonarqube-dd5fd97c77396e9d08a7ad4d0186e80ebd67f714.tar.gz sonarqube-dd5fd97c77396e9d08a7ad4d0186e80ebd67f714.zip |
SONAR-5300 id should be a long instead of an integer
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/measure/db/MeasureDto.java | 6 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/measure/db/MeasureDtoTest.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/measure/db/MeasureDto.java b/sonar-core/src/main/java/org/sonar/core/measure/db/MeasureDto.java index 7d45ab6784e..d51a9009ed5 100644 --- a/sonar-core/src/main/java/org/sonar/core/measure/db/MeasureDto.java +++ b/sonar-core/src/main/java/org/sonar/core/measure/db/MeasureDto.java @@ -30,7 +30,7 @@ public class MeasureDto extends Dto<MeasureKey>{ private static final String INDEX_SHOULD_BE_IN_RANGE_FROM_1_TO_5 = "Index should be in range from 1 to 5"; - private Integer id; + private Long id; private String metricKey; @@ -48,11 +48,11 @@ public class MeasureDto extends Dto<MeasureKey>{ // Nothing here } - public Integer getId() { + public Long getId() { return id; } - public MeasureDto setId(Integer id) { + public MeasureDto setId(Long id) { this.id = id; return this; } diff --git a/sonar-core/src/test/java/org/sonar/core/measure/db/MeasureDtoTest.java b/sonar-core/src/test/java/org/sonar/core/measure/db/MeasureDtoTest.java index 64171ee337a..833efb19116 100644 --- a/sonar-core/src/test/java/org/sonar/core/measure/db/MeasureDtoTest.java +++ b/sonar-core/src/test/java/org/sonar/core/measure/db/MeasureDtoTest.java @@ -30,7 +30,7 @@ public class MeasureDtoTest { @Test public void test_getter_and_setter() throws Exception { MeasureDto measureDto = MeasureDto.createFor(MeasureKey.of("component", "metric")) - .setId(10) + .setId(10L) .setValue(2d) .setTextValue("text value") .setData(new byte[]{}) |