commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1814522 - /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java
Date Tue, 07 Nov 2017 16:45:09 GMT
Author: ggregory
Date: Tue Nov  7 16:45:09 2017
New Revision: 1814522

URL: http://svn.apache.org/viewvc?rev=1814522&view=rev
Log:
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=1814522&r1=1814521&r2=1814522&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:09 2017
@@ -197,18 +197,18 @@ public class QCodec extends RFC1522Codec
      *
      * @param str
      *            string to convert to quoted-printable form
-     * @param charset
+     * @param sourceCharset
      *            the charset for str
      * @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 charset) throws EncoderException
{
+    public String encode(final String str, final Charset sourceCharset) throws EncoderException
{
         if (str == null) {
             return null;
         }
-        return encodeText(str, charset);
+        return encodeText(str, sourceCharset);
     }
 
     /**
@@ -216,18 +216,18 @@ public class QCodec extends RFC1522Codec
      *
      * @param str
      *            string to convert to quoted-printable form
-     * @param charset
+     * @param sourceCharset
      *            the charset for str
      * @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 charset) throws EncoderException
{
+    public String encode(final String str, final String sourceCharset) throws EncoderException
{
         if (str == null) {
             return null;
         }
         try {
-            return encodeText(str, charset);
+            return encodeText(str, sourceCharset);
         } catch (final UnsupportedEncodingException e) {
             throw new EncoderException(e.getMessage(), e);
         }



Mime
View raw message