You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2017/11/07 16:45:57 UTC

svn commit: r1814523 - /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java

Author: ggregory
Date: Tue Nov  7 16:45:57 2017
New Revision: 1814523

URL: http://svn.apache.org/viewvc?rev=1814523&view=rev
Log:
Better names (don't hide.)

Modified:
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java?rev=1814523&r1=1814522&r2=1814523&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java (original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java Tue Nov  7 16:45:57 2017
@@ -195,39 +195,39 @@ public class QCodec extends RFC1522Codec
     /**
      * Encodes a string into its quoted-printable form using the specified charset. Unsafe characters are escaped.
      *
-     * @param str
+     * @param sourceStr
      *            string to convert to quoted-printable form
      * @param sourceCharset
-     *            the charset for str
+     *            the charset for sourceStr
      * @return quoted-printable string
      * @throws EncoderException
      *             thrown if a failure condition is encountered during the encoding process.
      * @since 1.7
      */
-    public String encode(final String str, final Charset sourceCharset) throws EncoderException {
-        if (str == null) {
+    public String encode(final String sourceStr, final Charset sourceCharset) throws EncoderException {
+        if (sourceStr == null) {
             return null;
         }
-        return encodeText(str, sourceCharset);
+        return encodeText(sourceStr, sourceCharset);
     }
 
     /**
      * Encodes a string into its quoted-printable form using the specified charset. Unsafe characters are escaped.
      *
-     * @param str
+     * @param sourceStr
      *            string to convert to quoted-printable form
      * @param sourceCharset
-     *            the charset for str
+     *            the charset for sourceStr
      * @return quoted-printable string
      * @throws EncoderException
      *             thrown if a failure condition is encountered during the encoding process.
      */
-    public String encode(final String str, final String sourceCharset) throws EncoderException {
-        if (str == null) {
+    public String encode(final String sourceStr, final String sourceCharset) throws EncoderException {
+        if (sourceStr == null) {
             return null;
         }
         try {
-            return encodeText(str, sourceCharset);
+            return encodeText(sourceStr, sourceCharset);
         } catch (final UnsupportedEncodingException e) {
             throw new EncoderException(e.getMessage(), e);
         }
@@ -236,18 +236,18 @@ public class QCodec extends RFC1522Codec
     /**
      * Encodes a string into its quoted-printable form using the default charset. Unsafe characters are escaped.
      *
-     * @param str
+     * @param sourceStr
      *            string to convert to quoted-printable form
      * @return quoted-printable string
      * @throws EncoderException
      *             thrown if a failure condition is encountered during the encoding process.
      */
     @Override
-    public String encode(final String str) throws EncoderException {
-        if (str == null) {
+    public String encode(final String sourceStr) throws EncoderException {
+        if (sourceStr == null) {
             return null;
         }
-        return encode(str, getCharset());
+        return encode(sourceStr, getCharset());
     }
 
     /**