@@ -113,9 +113,9 @@ public URLCodec(String charset) {
113113 * Encodes an array of bytes into an array of URL safe 7-bit characters. Unsafe characters are escaped.
114114 *
115115 * @param urlsafe
116- * bitset of characters deemed URL safe
116+ * bitset of characters deemed URL safe
117117 * @param bytes
118- * array of bytes to convert to URL safe characters
118+ * array of bytes to convert to URL safe characters
119119 * @return array of bytes containing URL safe characters
120120 */
121121 public static final byte [] encodeUrl (BitSet urlsafe , byte [] bytes ) {
@@ -153,9 +153,11 @@ public static final byte[] encodeUrl(BitSet urlsafe, byte[] bytes) {
153153 * original bytes. Escaped characters are converted back to their
154154 * original representation.
155155 *
156- * @param bytes array of URL safe characters
156+ * @param bytes
157+ * array of URL safe characters
157158 * @return array of original bytes
158- * @throws DecoderException Thrown if URL decoding is unsuccessful
159+ * @throws DecoderException
160+ * Thrown if URL decoding is unsuccessful
159161 */
160162 public static final byte [] decodeUrl (byte [] bytes ) throws DecoderException {
161163 if (bytes == null ) {
@@ -185,7 +187,8 @@ public static final byte[] decodeUrl(byte[] bytes) throws DecoderException {
185187 * Encodes an array of bytes into an array of URL safe 7-bit
186188 * characters. Unsafe characters are escaped.
187189 *
188- * @param bytes array of bytes to convert to URL safe characters
190+ * @param bytes
191+ * array of bytes to convert to URL safe characters
189192 * @return array of bytes containing URL safe characters
190193 */
191194 @ Override
@@ -199,9 +202,11 @@ public byte[] encode(byte[] bytes) {
199202 * original bytes. Escaped characters are converted back to their
200203 * original representation.
201204 *
202- * @param bytes array of URL safe characters
205+ * @param bytes
206+ * array of URL safe characters
203207 * @return array of original bytes
204- * @throws DecoderException Thrown if URL decoding is unsuccessful
208+ * @throws DecoderException
209+ * Thrown if URL decoding is unsuccessful
205210 */
206211 @ Override
207212 public byte [] decode (byte [] bytes ) throws DecoderException {
@@ -212,12 +217,12 @@ public byte[] decode(byte[] bytes) throws DecoderException {
212217 * Encodes a string into its URL safe form using the specified string charset. Unsafe characters are escaped.
213218 *
214219 * @param str
215- * string to convert to a URL safe form
220+ * string to convert to a URL safe form
216221 * @param charset
217- * the charset for str
222+ * the charset for str
218223 * @return URL safe string
219224 * @throws UnsupportedEncodingException
220- * Thrown if charset is not supported
225+ * Thrown if charset is not supported
221226 */
222227 public String encode (String str , String charset ) throws UnsupportedEncodingException {
223228 if (str == null ) {
@@ -230,9 +235,11 @@ public String encode(String str, String charset) throws UnsupportedEncodingExcep
230235 * Encodes a string into its URL safe form using the default string
231236 * charset. Unsafe characters are escaped.
232237 *
233- * @param str string to convert to a URL safe form
238+ * @param str
239+ * string to convert to a URL safe form
234240 * @return URL safe string
235- * @throws EncoderException Thrown if URL encoding is unsuccessful
241+ * @throws EncoderException
242+ * Thrown if URL encoding is unsuccessful
236243 *
237244 * @see #getDefaultCharset()
238245 */
@@ -254,12 +261,15 @@ public String encode(String str) throws EncoderException {
254261 * specified encoding. Escaped characters are converted back
255262 * to their original representation.
256263 *
257- * @param str URL safe string to convert into its original form
258- * @param charset the original string charset
264+ * @param str
265+ * URL safe string to convert into its original form
266+ * @param charset
267+ * the original string charset
259268 * @return original string
260- * @throws DecoderException Thrown if URL decoding is unsuccessful
261- * @throws UnsupportedEncodingException Thrown if charset is not
262- * supported
269+ * @throws DecoderException
270+ * Thrown if URL decoding is unsuccessful
271+ * @throws UnsupportedEncodingException
272+ * Thrown if charset is not supported
263273 */
264274 public String decode (String str , String charset ) throws DecoderException , UnsupportedEncodingException {
265275 if (str == null ) {
@@ -273,10 +283,11 @@ public String decode(String str, String charset) throws DecoderException, Unsupp
273283 * string charset. Escaped characters are converted back to their
274284 * original representation.
275285 *
276- * @param str URL safe string to convert into its original form
286+ * @param str
287+ * URL safe string to convert into its original form
277288 * @return original string
278- * @throws DecoderException Thrown if URL decoding is unsuccessful
279- *
289+ * @throws DecoderException
290+ * Thrown if URL decoding is unsuccessful
280291 * @see #getDefaultCharset()
281292 */
282293 @ Override
@@ -292,14 +303,13 @@ public String decode(String str) throws DecoderException {
292303 }
293304
294305 /**
295- * Encodes an object into its URL safe form. Unsafe characters are
296- * escaped.
306+ * Encodes an object into its URL safe form. Unsafe characters are escaped.
297307 *
298- * @param obj string to convert to a URL safe form
308+ * @param obj
309+ * string to convert to a URL safe form
299310 * @return URL safe object
300- * @throws EncoderException Thrown if URL encoding is not
301- * applicable to objects of this type or
302- * if encoding is unsuccessful
311+ * @throws EncoderException
312+ * Thrown if URL encoding is not applicable to objects of this type or if encoding is unsuccessful
303313 */
304314 @ Override
305315 public Object encode (Object obj ) throws EncoderException {
@@ -324,8 +334,8 @@ public Object encode(Object obj) throws EncoderException {
324334 * URL safe object to convert into its original form
325335 * @return original object
326336 * @throws DecoderException
327- * Thrown if the argument is not a <code>String</code> or <code>byte[]</code>. Thrown if a failure condition is
328- * encountered during the decode process.
337+ * Thrown if the argument is not a <code>String</code> or <code>byte[]</code>.
338+ * Thrown if a failure condition is encountered during the decode process.
329339 */
330340 @ Override
331341 public Object decode (Object obj ) throws DecoderException {
0 commit comments