@@ -195,39 +195,39 @@ protected byte[] doDecoding(final byte[] bytes) throws DecoderException {
195195 /**
196196 * Encodes a string into its quoted-printable form using the specified charset. Unsafe characters are escaped.
197197 *
198- * @param str
198+ * @param sourceStr
199199 * string to convert to quoted-printable form
200200 * @param sourceCharset
201- * the charset for str
201+ * the charset for sourceStr
202202 * @return quoted-printable string
203203 * @throws EncoderException
204204 * thrown if a failure condition is encountered during the encoding process.
205205 * @since 1.7
206206 */
207- public String encode (final String str , final Charset sourceCharset ) throws EncoderException {
208- if (str == null ) {
207+ public String encode (final String sourceStr , final Charset sourceCharset ) throws EncoderException {
208+ if (sourceStr == null ) {
209209 return null ;
210210 }
211- return encodeText (str , sourceCharset );
211+ return encodeText (sourceStr , sourceCharset );
212212 }
213213
214214 /**
215215 * Encodes a string into its quoted-printable form using the specified charset. Unsafe characters are escaped.
216216 *
217- * @param str
217+ * @param sourceStr
218218 * string to convert to quoted-printable form
219219 * @param sourceCharset
220- * the charset for str
220+ * the charset for sourceStr
221221 * @return quoted-printable string
222222 * @throws EncoderException
223223 * thrown if a failure condition is encountered during the encoding process.
224224 */
225- public String encode (final String str , final String sourceCharset ) throws EncoderException {
226- if (str == null ) {
225+ public String encode (final String sourceStr , final String sourceCharset ) throws EncoderException {
226+ if (sourceStr == null ) {
227227 return null ;
228228 }
229229 try {
230- return encodeText (str , sourceCharset );
230+ return encodeText (sourceStr , sourceCharset );
231231 } catch (final UnsupportedEncodingException e ) {
232232 throw new EncoderException (e .getMessage (), e );
233233 }
@@ -236,18 +236,18 @@ public String encode(final String str, final String sourceCharset) throws Encode
236236 /**
237237 * Encodes a string into its quoted-printable form using the default charset. Unsafe characters are escaped.
238238 *
239- * @param str
239+ * @param sourceStr
240240 * string to convert to quoted-printable form
241241 * @return quoted-printable string
242242 * @throws EncoderException
243243 * thrown if a failure condition is encountered during the encoding process.
244244 */
245245 @ Override
246- public String encode (final String str ) throws EncoderException {
247- if (str == null ) {
246+ public String encode (final String sourceStr ) throws EncoderException {
247+ if (sourceStr == null ) {
248248 return null ;
249249 }
250- return encode (str , getCharset ());
250+ return encode (sourceStr , getCharset ());
251251 }
252252
253253 /**
0 commit comments