summaryrefslogtreecommitdiffstats
path: root/aai-core/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'aai-core/src/main/java')
-rw-r--r--aai-core/src/main/java/org/onap/aai/introspection/MoxyStrategy.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/introspection/MoxyStrategy.java b/aai-core/src/main/java/org/onap/aai/introspection/MoxyStrategy.java
index ce04fb7f..c5f4570d 100644
--- a/aai-core/src/main/java/org/onap/aai/introspection/MoxyStrategy.java
+++ b/aai-core/src/main/java/org/onap/aai/introspection/MoxyStrategy.java
@@ -292,14 +292,8 @@ public class MoxyStrategy extends Introspector {
keys = this.getKeys();
List<String> results = new ArrayList<>();
for (String key : keys) {
- if (this.getType(key).toLowerCase().contains("long")) {
- key = ((Long)this.getValue(key)).toString();
- } else {
- key = (String)this.getValue(key);
- }
- key = UriUtils.encode(key, "UTF-8");
-
- results.add(key);
+ String value = UriUtils.encode(this.getValue(key).toString(), "UTF-8");
+ results.add(value);
}
return Joiner.on("/").join(results);