tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1377852 - /tomcat/trunk/java/org/apache/catalina/authenticator/DigestAuthenticator.java
Date Mon, 27 Aug 2012 20:51:05 GMT
Author: markt
Date: Mon Aug 27 20:51:05 2012
New Revision: 1377852

URL: http://svn.apache.org/viewvc?rev=1377852&view=rev
Log:
Better handling of exception

Modified:
    tomcat/trunk/java/org/apache/catalina/authenticator/DigestAuthenticator.java

Modified: tomcat/trunk/java/org/apache/catalina/authenticator/DigestAuthenticator.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authenticator/DigestAuthenticator.java?rev=1377852&r1=1377851&r2=1377852&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/authenticator/DigestAuthenticator.java (original)
+++ tomcat/trunk/java/org/apache/catalina/authenticator/DigestAuthenticator.java Mon Aug 27
20:51:05 2012
@@ -66,8 +66,7 @@ public class DigestAuthenticator extends
                 md5Helper = MessageDigest.getInstance("MD5");
             }
         } catch (NoSuchAlgorithmException e) {
-            e.printStackTrace();
-            throw new IllegalStateException();
+            throw new IllegalStateException(e);
         }
     }
 
@@ -78,7 +77,7 @@ public class DigestAuthenticator extends
     /**
      * MD5 message digest provider.
      */
-    protected static volatile MessageDigest md5Helper;
+     protected static volatile MessageDigest md5Helper;
 
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message