WebAnalyticsExtAppController sonar issues 86/90086/1
authorDominik Mizyn <d.mizyn@samsung.com>
Tue, 18 Jun 2019 13:10:48 +0000 (15:10 +0200)
committerDominik Mizyn <d.mizyn@samsung.com>
Tue, 18 Jun 2019 13:12:50 +0000 (15:12 +0200)
commit89e5721f7e8e45fd0f26597a8b8082d90b47839c
treed39ad926c2ec2f42301d5bd2b35c6975429a572d
parent0722bf2fc95a1ccaabbc293dccc0d05ed0727b84
WebAnalyticsExtAppController sonar issues

- Rename this local variable to match the regular expression
- Make this anonymous inner class a lambda.
- Immediately return this expression instead of assigning it to
the temporary variable "response".
- Move the "" string literal on the left side of this string comparison.
- Replace the type specification in this constructor call
with the diamond operator ("<>").

Issue-ID: PORTAL-648
Change-Id: I1666d94dccbbe8aa835ea9a443a9973a245353f4
Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/WebAnalyticsExtAppController.java
ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/controller/WebAnalyticsExtAppControllerTest.java