Don't split ternary expression over two lines
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509261 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b57058ebb
commit
efdcb376e8
|
@ -208,8 +208,8 @@ public class CSVParser implements Iterable<CSVRecord>, Closeable {
|
|||
* If an I/O error occurs
|
||||
*/
|
||||
public static CSVParser parseURL(URL url, Charset charset, final CSVFormat format) throws IOException {
|
||||
return new CSVParser(new InputStreamReader(url.openStream(), charset == null ? Charset.forName("UTF-8")
|
||||
: charset), format);
|
||||
return new CSVParser(new InputStreamReader(url.openStream(),
|
||||
charset == null ? Charset.forName("UTF-8") : charset), format);
|
||||
}
|
||||
|
||||
// the following objects are shared to reduce garbage
|
||||
|
|
Loading…
Reference in New Issue