Code Review
/
aai
/
aai-common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add edge rules oxm changes for complex services
[aai/aai-common.git]
/
aai-core
/
src
/
main
/
java
/
org
/
onap
/
aai
/
introspection
/
MoxyStrategy.java
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
ce04fb7
..
c5f4570
100644
(file)
--- 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) {
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);
}
return Joiner.on("/").join(results);