samples/messagedigest/src-bridge/org/apidesign/impl/security/extension/BridgeToNew.java
changeset 153 b5cbb797ec0a
parent 132 3bc4c54f4bcc
child 154 0fd5e9c500b9
     1.1 --- a/samples/messagedigest/src-bridge/org/apidesign/impl/security/extension/BridgeToNew.java	Sat Jun 14 09:56:12 2008 +0200
     1.2 +++ b/samples/messagedigest/src-bridge/org/apidesign/impl/security/extension/BridgeToNew.java	Sat Jun 14 09:58:08 2008 +0200
     1.3 @@ -1,3 +1,8 @@
     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 @@ -13,8 +18,7 @@
    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 
    1.17 -     * overflow */
    1.18 +    /** initializes the other bridge, and allow us to eliminate stack overflow */
    1.19      private static final BridgeToOld oldBridge = new BridgeToOld();
    1.20      
    1.21      @Override
    1.22 @@ -30,9 +34,7 @@
    1.23          try {
    1.24              return MessageDigest.getInstance(algorithm);
    1.25          } catch (NoSuchAlgorithmException ex) {
    1.26 -            Logger.getLogger(BridgeToNew.class.getName()).log(
    1.27 -                Level.FINE, "Cannot find " + algorithm, ex
    1.28 -            );
    1.29 +            Logger.getLogger(BridgeToNew.class.getName()).log(Level.FINE, "Cannot find " + algorithm, ex);
    1.30              return null;
    1.31          }
    1.32      }