Fix some sonar issues in sli/northbound
authorsurya-huawei <a.u.surya@huawei.com>
Mon, 25 Sep 2017 12:01:57 +0000 (17:31 +0530)
committersurya-huawei <a.u.surya@huawei.com>
Mon, 25 Sep 2017 12:10:34 +0000 (17:40 +0530)
commite5a46e5667e52c8bd8ceb4f322ff4d300223267c
treef34363a77176c6ad2ef3a1bb00f465c3e516d503
parentbbf1668256784af8268de8ce2b0b84e42c0e18d4
Fix some sonar issues in sli/northbound

*Replace type specification with diamond operator
This is done to reduce the verbosity of generics code
*Replace ("") with ('') in String.lastIndexOf()
This is more efficient for single character
*Remove temp variable which is immediately returned
New variable is not necessary as the caller cannot see this

Issue-Id: CCSDK-87
Change-Id: I353652de723a624935d819b2bc817b4907af98ed
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java