Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Remove code smells in PolicyController"
[nonrtric.git]
/
dashboard
/
webapp-backend
/
src
/
main
/
java
/
org
/
oransc
/
ric
/
portal
/
dashboard
/
model
/
PolicyType.java
diff --git
a/dashboard/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/PolicyType.java
b/dashboard/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/PolicyType.java
index
ea51cc5
..
035428b
100644
(file)
--- a/
dashboard/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/PolicyType.java
+++ b/
dashboard/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/PolicyType.java
@@
-23,35
+23,35
@@
import com.fasterxml.jackson.annotation.JsonProperty;
public class PolicyType {
public class PolicyType {
-
@JsonProperty("name")
-
String name;
+ @JsonProperty("name")
+ String name;
-
@JsonProperty("schema")
-
String
schema;
+ @JsonProperty("schema")
+
Object
schema;
-
public PolicyType(String name, String
schema) {
-
this.name = name;
-
this.schema = schema;
-
}
+
public PolicyType(String name, Object
schema) {
+ this.name = name;
+ this.schema = schema;
+ }
-
public String getName() {
-
return name;
-
}
+ public String getName() {
+ return name;
+ }
-
public void setName(String name) {
-
this.name = name;
-
}
+ public void setName(String name) {
+ this.name = name;
+ }
-
public String
getSchema() {
-
return schema;
-
}
+
public Object
getSchema() {
+ return schema;
+ }
-
public void setSchema(String
schema) {
-
this.schema = schema;
-
}
+
public void setSchema(Object
schema) {
+ this.schema = schema;
+ }
-
@Override
-
public String toString() {
-
return "[name:" + name + ", schema:" + schema
+ "]";
-
}
+ @Override
+ public String toString() {
+
return "[name:" + name + ", schema:" + schema.toString()
+ "]";
+ }
}
}