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:
Sebastian Bazley 2013-08-01 14:39:29 +00:00
parent 4b57058ebb
commit efdcb376e8
1 changed files with 2 additions and 2 deletions

View File

@ -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