diff options
author | Rob Daugherty <rd472p@att.com> | 2018-03-07 18:51:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-07 18:51:28 +0000 |
commit | bcfb7e24ab050bd530e9aa2c9557386a4b9f82f5 (patch) | |
tree | 6db120e870f9627acf7bdb24362f447d6411d95d /adapters | |
parent | 242125e7ed47ba9631e7d9c261a26d627db5c3f8 (diff) | |
parent | 0fa31fe9f32c8acb4fadfce627196e748b712106 (diff) |
Merge "Swap indexOf with contains"
Diffstat (limited to 'adapters')
-rw-r--r-- | adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/BeanTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/BeanTest.java b/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/BeanTest.java index 5c3470acd9..9efaee921f 100644 --- a/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/BeanTest.java +++ b/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/BeanTest.java @@ -433,7 +433,7 @@ public class BeanTest { m.invoke(obj); } else if (types.length == 1) { String type = types[0].getTypeName(); - if (type.indexOf("<") != -1) { + if (type.contains("<")) { type = type.substring(0, type.indexOf("<")); } Class paramCls = Class.forName(type); |