Implement spring Conduit bean registry and lots of cleanup
[jpim.git] / src / de / j32 / avmfritz / LoginXML.java
index c50f80a..82766c3 100644 (file)
@@ -66,10 +66,9 @@ public class LoginXML
                        md.update((c + "-" + password).getBytes("UTF-16LE"));
                        return c + "-" + new HexBinaryAdapter().marshal(md.digest()).toLowerCase();
                } catch (NoSuchAlgorithmException e) {
-                       // Is it at all feasible for this to happen ?
-                       throw new RuntimeException("missing MD5 implementation");
+                       throw new AssertionError("missing MD5 implementation");
                } catch (UnsupportedEncodingException e) {
-                       throw new RuntimeException("missing UTF-16LE encoding");
+                       throw new AssertionError("missing UTF-16LE encoding");
                }
        }
 }