Skip to content

Commit 76920b7

Browse files
committed
Do not hide other name.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1813200 13f79535-47bb-0310-9956-ffa450edef68
1 parent 60abc43 commit 76920b7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,17 @@ public byte[] decode(final byte[] bytes) throws DecoderException {
220220
*
221221
* @param str
222222
* string to convert to a URL safe form
223-
* @param charset
223+
* @param charsetName
224224
* the charset for str
225225
* @return URL safe string
226226
* @throws UnsupportedEncodingException
227227
* Thrown if charset is not supported
228228
*/
229-
public String encode(final String str, final String charset) throws UnsupportedEncodingException {
229+
public String encode(final String str, final String charsetName) throws UnsupportedEncodingException {
230230
if (str == null) {
231231
return null;
232232
}
233-
return StringUtils.newStringUsAscii(encode(str.getBytes(charset)));
233+
return StringUtils.newStringUsAscii(encode(str.getBytes(charsetName)));
234234
}
235235

236236
/**
@@ -263,19 +263,19 @@ public String encode(final String str) throws EncoderException {
263263
*
264264
* @param str
265265
* URL safe string to convert into its original form
266-
* @param charset
266+
* @param charsetName
267267
* the original string charset
268268
* @return original string
269269
* @throws DecoderException
270270
* Thrown if URL decoding is unsuccessful
271271
* @throws UnsupportedEncodingException
272272
* Thrown if charset is not supported
273273
*/
274-
public String decode(final String str, final String charset) throws DecoderException, UnsupportedEncodingException {
274+
public String decode(final String str, final String charsetName) throws DecoderException, UnsupportedEncodingException {
275275
if (str == null) {
276276
return null;
277277
}
278-
return new String(decode(StringUtils.getBytesUsAscii(str)), charset);
278+
return new String(decode(StringUtils.getBytesUsAscii(str)), charsetName);
279279
}
280280

281281
/**

0 commit comments

Comments
 (0)