Skip to content

Commit aabe13f

Browse files
committed
Rename param.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1814511 13f79535-47bb-0310-9956-ffa450edef68
1 parent b64e654 commit aabe13f

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ public byte[] decode(final byte[] bytes) throws DecoderException {
416416
* or only a subset of quoted-printable encoding specification (rule #1 and rule #2) as defined in
417417
* RFC 1521 and is suitable for encoding binary data and unformatted text.
418418
*
419-
* @param str
419+
* @param sourceStr
420420
* string to convert to quoted-printable form
421421
* @return quoted-printable string
422422
* @throws EncoderException
@@ -425,15 +425,15 @@ public byte[] decode(final byte[] bytes) throws DecoderException {
425425
* @see #getCharset()
426426
*/
427427
@Override
428-
public String encode(final String str) throws EncoderException {
429-
return this.encode(str, getCharset());
428+
public String encode(final String sourceStr) throws EncoderException {
429+
return this.encode(sourceStr, getCharset());
430430
}
431431

432432
/**
433433
* Decodes a quoted-printable string into its original form using the specified string charset. Escaped characters
434434
* are converted back to their original representation.
435435
*
436-
* @param str
436+
* @param sourceStr
437437
* quoted-printable string to convert into its original form
438438
* @param sourceCharset
439439
* the original string charset
@@ -442,18 +442,18 @@ public String encode(final String str) throws EncoderException {
442442
* Thrown if quoted-printable decoding is unsuccessful
443443
* @since 1.7
444444
*/
445-
public String decode(final String str, final Charset sourceCharset) throws DecoderException {
446-
if (str == null) {
445+
public String decode(final String sourceStr, final Charset sourceCharset) throws DecoderException {
446+
if (sourceStr == null) {
447447
return null;
448448
}
449-
return new String(this.decode(StringUtils.getBytesUsAscii(str)), sourceCharset);
449+
return new String(this.decode(StringUtils.getBytesUsAscii(sourceStr)), sourceCharset);
450450
}
451451

452452
/**
453453
* Decodes a quoted-printable string into its original form using the specified string charset. Escaped characters
454454
* are converted back to their original representation.
455455
*
456-
* @param str
456+
* @param sourceStr
457457
* quoted-printable string to convert into its original form
458458
* @param sourceCharset
459459
* the original string charset
@@ -463,27 +463,27 @@ public String decode(final String str, final Charset sourceCharset) throws Decod
463463
* @throws UnsupportedEncodingException
464464
* Thrown if charset is not supported
465465
*/
466-
public String decode(final String str, final String sourceCharset) throws DecoderException, UnsupportedEncodingException {
467-
if (str == null) {
466+
public String decode(final String sourceStr, final String sourceCharset) throws DecoderException, UnsupportedEncodingException {
467+
if (sourceStr == null) {
468468
return null;
469469
}
470-
return new String(decode(StringUtils.getBytesUsAscii(str)), sourceCharset);
470+
return new String(decode(StringUtils.getBytesUsAscii(sourceStr)), sourceCharset);
471471
}
472472

473473
/**
474474
* Decodes a quoted-printable string into its original form using the default string charset. Escaped characters are
475475
* converted back to their original representation.
476476
*
477-
* @param str
477+
* @param sourceStr
478478
* quoted-printable string to convert into its original form
479479
* @return original string
480480
* @throws DecoderException
481481
* Thrown if quoted-printable decoding is unsuccessful. Thrown if charset is not supported.
482482
* @see #getCharset()
483483
*/
484484
@Override
485-
public String decode(final String str) throws DecoderException {
486-
return this.decode(str, this.getCharset());
485+
public String decode(final String sourceStr) throws DecoderException {
486+
return this.decode(sourceStr, this.getCharset());
487487
}
488488

489489
/**
@@ -563,18 +563,18 @@ public String getDefaultCharset() {
563563
* or only a subset of quoted-printable encoding specification (rule #1 and rule #2) as defined in
564564
* RFC 1521 and is suitable for encoding binary data and unformatted text.
565565
*
566-
* @param str
566+
* @param sourceStr
567567
* string to convert to quoted-printable form
568568
* @param sourceCharset
569569
* the charset for str
570570
* @return quoted-printable string
571571
* @since 1.7
572572
*/
573-
public String encode(final String str, final Charset sourceCharset) {
574-
if (str == null) {
573+
public String encode(final String sourceStr, final Charset sourceCharset) {
574+
if (sourceStr == null) {
575575
return null;
576576
}
577-
return StringUtils.newStringUsAscii(this.encode(str.getBytes(sourceCharset)));
577+
return StringUtils.newStringUsAscii(this.encode(sourceStr.getBytes(sourceCharset)));
578578
}
579579

580580
/**
@@ -584,18 +584,18 @@ public String encode(final String str, final Charset sourceCharset) {
584584
* or only a subset of quoted-printable encoding specification (rule #1 and rule #2) as defined in
585585
* RFC 1521 and is suitable for encoding binary data and unformatted text.
586586
*
587-
* @param str
587+
* @param sourceStr
588588
* string to convert to quoted-printable form
589589
* @param sourceCharset
590590
* the charset for str
591591
* @return quoted-printable string
592592
* @throws UnsupportedEncodingException
593593
* Thrown if the charset is not supported
594594
*/
595-
public String encode(final String str, final String sourceCharset) throws UnsupportedEncodingException {
596-
if (str == null) {
595+
public String encode(final String sourceStr, final String sourceCharset) throws UnsupportedEncodingException {
596+
if (sourceStr == null) {
597597
return null;
598598
}
599-
return StringUtils.newStringUsAscii(encode(str.getBytes(sourceCharset)));
599+
return StringUtils.newStringUsAscii(encode(sourceStr.getBytes(sourceCharset)));
600600
}
601601
}

0 commit comments

Comments
 (0)