diff options
author | Patrick Brady <pb071s@att.com> | 2017-04-20 21:10:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-04-20 21:10:43 +0000 |
commit | b06810bb67667edb0d9d9087cc1f978bda988c87 (patch) | |
tree | 3d5bdba464b3156a4ba24c03aa83897816985171 /appc-dispatcher/appc-dispatcher-common | |
parent | f061217a2cfe6030cf147c852a4d6d183e7fb2e0 (diff) | |
parent | c9373d8f5809fe650c30832e9409282cb34688f8 (diff) |
Merge "Refactor Status to be immutable"
Diffstat (limited to 'appc-dispatcher/appc-dispatcher-common')
-rw-r--r-- | appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/main/java/org/openecomp/appc/domainmodel/lcm/Status.java | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/main/java/org/openecomp/appc/domainmodel/lcm/Status.java b/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/main/java/org/openecomp/appc/domainmodel/lcm/Status.java index a5fbefa9c..978e570f3 100644 --- a/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/main/java/org/openecomp/appc/domainmodel/lcm/Status.java +++ b/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/main/java/org/openecomp/appc/domainmodel/lcm/Status.java @@ -24,25 +24,22 @@ package org.openecomp.appc.domainmodel.lcm; public class Status { - private int code; - private String message; + private final int code; + private final String message; - public int getCode() { - return code; + public Status(int code, String message) { + this.code = code; + this.message = message; } - public void setCode(int code) { - this.code = code; + public int getCode() { + return code; } public String getMessage() { return message; } - public void setMessage(String value) { - this.message = value; - } - @Override public String toString() { return "Status{" + |