Skip to content

Commit 832cd71

Browse files
committed
Don't hide.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1814522 13f79535-47bb-0310-9956-ffa450edef68
1 parent a011e57 commit 832cd71

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,37 +197,37 @@ protected byte[] doDecoding(final byte[] bytes) throws DecoderException {
197197
*
198198
* @param str
199199
* string to convert to quoted-printable form
200-
* @param charset
200+
* @param sourceCharset
201201
* the charset for str
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 charset) throws EncoderException {
207+
public String encode(final String str, final Charset sourceCharset) throws EncoderException {
208208
if (str == null) {
209209
return null;
210210
}
211-
return encodeText(str, charset);
211+
return encodeText(str, sourceCharset);
212212
}
213213

214214
/**
215215
* Encodes a string into its quoted-printable form using the specified charset. Unsafe characters are escaped.
216216
*
217217
* @param str
218218
* string to convert to quoted-printable form
219-
* @param charset
219+
* @param sourceCharset
220220
* the charset for str
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 charset) throws EncoderException {
225+
public String encode(final String str, final String sourceCharset) throws EncoderException {
226226
if (str == null) {
227227
return null;
228228
}
229229
try {
230-
return encodeText(str, charset);
230+
return encodeText(str, sourceCharset);
231231
} catch (final UnsupportedEncodingException e) {
232232
throw new EncoderException(e.getMessage(), e);
233233
}

0 commit comments

Comments
 (0)