From: Jonathan Gathman Date: Wed, 12 Dec 2018 23:44:27 +0000 (+0000) Subject: Merge "Fixed sonar issue in InputIterator.java" X-Git-Tag: 2.1.9~84 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=00d96bbfd0f6caaa0bbcbe51d1c067822aa5040f;hp=8eff612c7c03471951be68687501d96c337a70df;p=aaf%2Fauthz.git Merge "Fixed sonar issue in InputIterator.java" --- 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 { 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 { try { input = in.readLine(); } catch (IOException e) { + trans.error().log("IO Exception",e.getMessage()); input = null; return false; }