diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2019-01-03 15:36:08 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2019-01-03 15:36:18 +0530 |
commit | 133a0d9cb0244c31028d3c8c75090cd32cd2f814 (patch) | |
tree | d0ce85b3e96a9d87b8720920c1450ccb70058da8 /auth | |
parent | da120047d0da2b940947312b55da8098724e6a75 (diff) |
Soanr fix: AbsCredBody.java
Fixed sonar issues/code-smells across this file
Issue-ID: AAF-692
Change-Id: I877f37617fca7ea457629a819897a529bc972c97
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'auth')
-rw-r--r-- | auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/AbsCredBody.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/AbsCredBody.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/AbsCredBody.java index c0d16b06..db45e206 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/AbsCredBody.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/AbsCredBody.java @@ -3,6 +3,8 @@ * org.onap.aaf * =========================================================================== * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. + * + * Modifications Copyright (C) 2018 IBM. * =========================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,13 +27,13 @@ import java.util.List; public abstract class AbsCredBody extends NotifyBody { - public AbsCredBody(final String name) throws IOException { + public AbsCredBody(final String name) { super("cred",name); } @Override public String user(List<String> row) { - if(row.size()>0) { + if( (row != null) && !row.isEmpty()) { return row.get(1); } return null; |