diff options
author | 2017-09-06 17:47:11 +0800 | |
---|---|---|
committer | 2017-09-06 18:39:39 +0800 | |
commit | 3d9201cd04d80d99d6a79dc471a43a4ac6299166 (patch) | |
tree | 559cacd0a09bc7ddb1251a8c501c8a8f23c1f2b3 /holmes-actions | |
parent | 892ee11e90a7ad564a8dae5d744287db3bf3ba04 (diff) |
Change the Data Type of Some Fields
Change-Id: I7e08805477983ad7956a5ee2f7e79cb6f80bd365
Issue-ID: HOLMES-39
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'holmes-actions')
-rw-r--r-- | holmes-actions/src/main/java/org/onap/holmes/common/api/entity/CorrelationRule.java | 2 | ||||
-rw-r--r-- | holmes-actions/src/test/java/org/onap/holmes/common/api/entity/CorrelationRuleTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/api/entity/CorrelationRule.java b/holmes-actions/src/main/java/org/onap/holmes/common/api/entity/CorrelationRule.java index 6b91bd3..c8d61b9 100644 --- a/holmes-actions/src/main/java/org/onap/holmes/common/api/entity/CorrelationRule.java +++ b/holmes-actions/src/main/java/org/onap/holmes/common/api/entity/CorrelationRule.java @@ -34,7 +34,7 @@ public class CorrelationRule { @JsonProperty
private int enabled;
@JsonProperty
- private int templateID;
+ private long templateID;
private String engineID;
@JsonProperty
private String engineType;
diff --git a/holmes-actions/src/test/java/org/onap/holmes/common/api/entity/CorrelationRuleTest.java b/holmes-actions/src/test/java/org/onap/holmes/common/api/entity/CorrelationRuleTest.java index 25ee5c6..e00f961 100644 --- a/holmes-actions/src/test/java/org/onap/holmes/common/api/entity/CorrelationRuleTest.java +++ b/holmes-actions/src/test/java/org/onap/holmes/common/api/entity/CorrelationRuleTest.java @@ -69,7 +69,7 @@ public class CorrelationRuleTest { @Test public void getterAndSetter4TemplateID() throws Exception { - final int templateId = 1; + final long templateId = 1L; correlationRule.setTemplateID(templateId); assertThat(correlationRule.getTemplateID(), equalTo(templateId)); } |