Tighten en exception

master
jvoisin 5 years ago
parent e1a8a3b752
commit d07d0ad687
  1. 5
      airsonic-main/src/main/java/org/airsonic/player/util/StringUtil.java

@ -19,6 +19,7 @@
*/ */
package org.airsonic.player.util; package org.airsonic.player.util;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Hex; import org.apache.commons.codec.binary.Hex;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
@ -321,9 +322,9 @@ public final class StringUtil {
* *
* @param s The string to decode. * @param s The string to decode.
* @return The decoded string. * @return The decoded string.
* @throws Exception If an error occurs. * @throws DecoderException If an error occurs.
*/ */
public static String utf8HexDecode(String s) throws Exception { public static String utf8HexDecode(String s) throws DecoderException {
if (s == null) { if (s == null) {
return null; return null;
} }

Loading…
Cancel
Save