@@ -161,8 +161,8 @@ public static CSVParser parse(final File file, final Charset charset, final CSVF
161161 * Creates a CSV parser using the given {@link CSVFormat}.
162162 *
163163 * <p>
164- * If you do not read all records from the given {@code reader}, you should
165- * call {@link #close()} on the parser, unless you close the {@code reader}.
164+ * If you do not read all records from the given {@code reader}, you should call {@link #close()} on the parser,
165+ * unless you close the {@code reader}.
166166 * </p>
167167 *
168168 * @param inputStream
@@ -171,12 +171,11 @@ public static CSVParser parse(final File file, final Charset charset, final CSVF
171171 * a Charset.
172172 * @param format
173173 * the CSVFormat used for CSV parsing. Must not be null.
174+ * @return a new CSVParser configured with the given reader and format.
174175 * @throws IllegalArgumentException
175- * If the parameters of the format are inconsistent or if either
176- * reader or format are null.
176+ * If the parameters of the format are inconsistent or if either reader or format are null.
177177 * @throws IOException
178- * If there is a problem reading the header or skipping the
179- * first record
178+ * If there is a problem reading the header or skipping the first record
180179 * @since 1.5
181180 */
182181 @ SuppressWarnings ("resource" )
@@ -212,20 +211,19 @@ public static CSVParser parse(final Path path, final Charset charset, final CSVF
212211 * Creates a CSV parser using the given {@link CSVFormat}
213212 *
214213 * <p>
215- * If you do not read all records from the given {@code reader}, you should
216- * call {@link #close()} on the parser, unless you close the {@code reader}.
214+ * If you do not read all records from the given {@code reader}, you should call {@link #close()} on the parser,
215+ * unless you close the {@code reader}.
217216 * </p>
218217 *
219218 * @param reader
220219 * a Reader containing CSV-formatted input. Must not be null.
221220 * @param format
222221 * the CSVFormat used for CSV parsing. Must not be null.
222+ * @return a new CSVParser configured with the given reader and format.
223223 * @throws IllegalArgumentException
224- * If the parameters of the format are inconsistent or if either
225- * reader or format are null.
224+ * If the parameters of the format are inconsistent or if either reader or format are null.
226225 * @throws IOException
227- * If there is a problem reading the header or skipping the
228- * first record
226+ * If there is a problem reading the header or skipping the first record
229227 * @since 1.5
230228 */
231229 public static CSVParser parse (Reader reader , final CSVFormat format ) throws IOException {
0 commit comments