summaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapters-rest-interface/src/test/java
diff options
context:
space:
mode:
authorMunir Ahmad <munir.ahmad@bell.ca>2018-03-02 20:06:26 -0500
committerMunir Ahmad <munir.ahmad@bell.ca>2018-03-07 11:39:26 +0000
commit0fa31fe9f32c8acb4fadfce627196e748b712106 (patch)
tree6aad7da59f0b80ee690b1f0bbb9955270eeecdad /adapters/mso-adapters-rest-interface/src/test/java
parent8a6c06a549e753cbac8341aef3e23f2f4b4f3fe2 (diff)
Swap indexOf with contains
Change-Id: I609d307acf504ea7ff25ed3327a3d4e0e4686755 Issue-ID: SO-437 Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
Diffstat (limited to 'adapters/mso-adapters-rest-interface/src/test/java')
-rw-r--r--adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/BeanTest.java2
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);