summaryrefslogtreecommitdiffstats
path: root/auth/auth-batch
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-12-10 18:49:50 +0530
committerezhil <ezhrajam@in.ibm.com>2018-12-10 18:50:02 +0530
commitfa5976806a10bf248d816f5d1279e38a35b90e53 (patch)
treed2c872d8b94d6178e894ac09fb5d11e7dc6fb013 /auth/auth-batch
parentd499a5481bf34b6dfed090efb8c6d78822373e77 (diff)
Fixed sonar issue in InputIterator.java
Fixed sonar issue Issue-ID: AAF-671 Change-Id: I14df62508994d4343baf50a984ad3ad9308f1486 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'auth/auth-batch')
-rw-r--r--auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/InputIterator.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/InputIterator.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/InputIterator.java
index 04d9a019..954d6b47 100644
--- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/InputIterator.java
+++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/InputIterator.java
@@ -3,6 +3,7 @@
* 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.
@@ -26,11 +27,14 @@ import java.io.IOException;
import java.io.PrintStream;
import java.util.Iterator;
import java.util.NoSuchElementException;
+import org.onap.aaf.auth.env.AuthzTrans;
+
public class InputIterator implements Iterable<String> {
private BufferedReader in;
private final PrintStream out;
private final String prompt, instructions;
+ private static AuthzTrans trans;
public InputIterator(BufferedReader in, PrintStream out, String prompt, String instructions) {
this.in = in;
@@ -50,6 +54,7 @@ public class InputIterator implements Iterable<String> {
try {
input = in.readLine();
} catch (IOException e) {
+ trans.error().log("IO Exception",e.getMessage());
input = null;
return false;
}