Skip to content

Commit b241c06

Browse files
author
Gary Gregory
committed
Better param name.
1 parent ccbf299 commit b241c06

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/org/apache/commons/io/input/XmlStreamReader.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -524,21 +524,21 @@ public XmlStreamReader(final URL url) throws IOException {
524524
* It does a lenient charset encoding detection, check the constructor with
525525
* the lenient parameter for details.
526526
*
527-
* @param conn URLConnection to create a Reader from.
527+
* @param urlConnection URLConnection to create a Reader from.
528528
* @param defaultEncoding The default encoding
529529
* @throws IOException thrown if there is a problem reading the stream of
530530
* the URLConnection.
531531
*/
532-
public XmlStreamReader(final URLConnection conn, final String defaultEncoding) throws IOException {
533-
Objects.requireNonNull(conn, "conn");
532+
public XmlStreamReader(final URLConnection urlConnection, final String defaultEncoding) throws IOException {
533+
Objects.requireNonNull(urlConnection, "urlConnection");
534534
this.defaultEncoding = defaultEncoding;
535535
final boolean lenient = true;
536-
final String contentType = conn.getContentType();
537-
final InputStream inputStream = conn.getInputStream();
536+
final String contentType = urlConnection.getContentType();
537+
final InputStream inputStream = urlConnection.getInputStream();
538538
@SuppressWarnings("resource") // managed by the InputStreamReader tracked by this instance
539539
final BOMInputStream bom = new BOMInputStream(new BufferedInputStream(inputStream, IOUtils.DEFAULT_BUFFER_SIZE), false, BOMS);
540540
final BOMInputStream pis = new BOMInputStream(bom, true, XML_GUESS_BYTES);
541-
if (conn instanceof HttpURLConnection || contentType != null) {
541+
if (urlConnection instanceof HttpURLConnection || contentType != null) {
542542
this.encoding = processHttpStream(bom, pis, contentType, lenient);
543543
} else {
544544
this.encoding = doRawStream(bom, pis, lenient);

0 commit comments

Comments
 (0)