Skip to content

Commit

Permalink
OPENNLP-1548 - Cleanup handling of output streams in cmdline tools
Browse files Browse the repository at this point in the history
  • Loading branch information
rzo1 committed Nov 3, 2024
1 parent b473d08 commit e533feb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void run(String format, String[] args) {
reportListener.writeReport();

try {
// TODO: is it a problem to close the stream now?
reportOutputStream.flush();
reportOutputStream.close();
} catch (IOException e) {
// nothing to do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void close() throws IOException {
reportListener.writeReport();

try {
// TODO: is it a problem to close the stream now?
reportOutputStream.flush();
reportOutputStream.close();
} catch (IOException e) {
// nothing to do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void run(String format, String[] args) {
reportListener.writeReport();

try {
// TODO: is it a problem to close the stream now?
reportOutputStream.flush();
reportOutputStream.close();
} catch (IOException e) {
// nothing to do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void close() throws IOException {
reportListener.writeReport();

try {
// TODO: is it a problem to close the stream now?
reportOutputStream.flush();
reportOutputStream.close();
} catch (IOException e) {
// nothing to do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void run(String format, String[] args) {
reportListener.writeReport();

try {
// TODO: is it a problem to close the stream now?
reportOutputStream.flush();
reportOutputStream.close();
} catch (IOException e) {
// nothing to do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void run(String format, String[] args) {
reportListener.writeReport();

try {
// TODO: is it a problem to close the stream now?
reportOutputStream.flush();
reportOutputStream.close();
} catch (IOException e) {
// nothing to do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void run(String format, String[] args) {
reportListener.writeReport();

try {
// TODO: is it a problem to close the stream now?
reportOutputStream.flush();
reportOutputStream.close();
} catch (IOException e) {
// nothing to do
Expand Down

0 comments on commit e533feb

Please sign in to comment.