Sonar fix: List.java

Fixed sonar issues in this file

Issue-ID: AAF-968
Change-Id: Ic9265fa4d808d8249450875c930780d5b189273c
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
1 file changed