HADOOP-10478. Fix new findbugs warnings in hadoop-maven-plugins. Contributed by Li Lu.

This commit is contained in:
Haohui Mai 2015-02-23 16:37:48 -08:00
parent 769507bd7a
commit 16bd79ee8e
2 changed files with 9 additions and 1 deletions

View File

@ -987,6 +987,9 @@ Release 2.7.0 - UNRELEASED
HADOOP-11584 s3a file block size set to 0 in getFileStatus. HADOOP-11584 s3a file block size set to 0 in getFileStatus.
(Brahma Reddy Battula via stevel) (Brahma Reddy Battula via stevel)
HADOOP-10478. Fix new findbugs warnings in hadoop-maven-plugins.
(Li Lu via wheat9)
Release 2.6.1 - UNRELEASED Release 2.6.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -19,6 +19,7 @@
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -87,7 +88,11 @@ private static class OutputBufferThread extends Thread {
public OutputBufferThread(InputStream is) { public OutputBufferThread(InputStream is) {
this.setDaemon(true); this.setDaemon(true);
output = new ArrayList<String>(); output = new ArrayList<String>();
reader = new BufferedReader(new InputStreamReader(is)); try {
reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
} catch (UnsupportedEncodingException e) {
throw new RuntimeException("Unsupported encoding " + e.toString());
}
} }
@Override @Override