samples/messagedigest/src-bridge/org/apidesign/impl/security/extension/BridgeToNew.java
1.1 --- a/samples/messagedigest/src-bridge/org/apidesign/impl/security/extension/BridgeToNew.java Sat Jun 14 09:52:25 2008 +0200
1.2 +++ b/samples/messagedigest/src-bridge/org/apidesign/impl/security/extension/BridgeToNew.java Sat Jun 14 09:56:12 2008 +0200
1.3 @@ -1,8 +1,3 @@
1.4 -/*
1.5 - * To change this template, choose Tools | Templates
1.6 - * and open the template in the editor.
1.7 - */
1.8 -
1.9 package org.apidesign.impl.security.extension;
1.10
1.11 import java.nio.ByteBuffer;
1.12 @@ -18,7 +13,8 @@
1.13 */
1.14 // BEGIN: day.end.bridges.BridgeToNew
1.15 public class BridgeToNew extends Digestor<MessageDigest> {
1.16 - /** initializes the other bridge, and allow us to eliminate stack overflow */
1.17 + /** initializes the other bridge, and allow us to eliminate stack
1.18 + * overflow */
1.19 private static final BridgeToOld oldBridge = new BridgeToOld();
1.20
1.21 @Override
1.22 @@ -34,7 +30,9 @@
1.23 try {
1.24 return MessageDigest.getInstance(algorithm);
1.25 } catch (NoSuchAlgorithmException ex) {
1.26 - Logger.getLogger(BridgeToNew.class.getName()).log(Level.FINE, "Cannot find " + algorithm, ex);
1.27 + Logger.getLogger(BridgeToNew.class.getName()).log(
1.28 + Level.FINE, "Cannot find " + algorithm, ex
1.29 + );
1.30 return null;
1.31 }
1.32 }