HADOOP-10478. Fix new findbugs warnings in hadoop-maven-plugins. Contributed by Li Lu.
This commit is contained in:
parent
657a6e389b
commit
92acb0e4f4
|
@ -581,6 +581,9 @@ Release 2.7.0 - UNRELEASED
|
|||
HADOOP-11584 s3a file block size set to 0 in getFileStatus.
|
||||
(Brahma Reddy Battula via stevel)
|
||||
|
||||
HADOOP-10478. Fix new findbugs warnings in hadoop-maven-plugins.
|
||||
(Li Lu via wheat9)
|
||||
|
||||
Release 2.6.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -19,6 +19,7 @@ import java.io.BufferedReader;
|
|||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -87,7 +88,11 @@ public class Exec {
|
|||
public OutputBufferThread(InputStream is) {
|
||||
this.setDaemon(true);
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue