Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 77416 invoked from network); 5 Feb 2011 02:53:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2011 02:53:53 -0000 Received: (qmail 57191 invoked by uid 500); 5 Feb 2011 02:53:53 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 57037 invoked by uid 500); 5 Feb 2011 02:53:52 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 57029 invoked by uid 99); 5 Feb 2011 02:53:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Feb 2011 02:53:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Feb 2011 02:53:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D101918FDFC for ; Sat, 5 Feb 2011 02:53:30 +0000 (UTC) Date: Sat, 5 Feb 2011 02:53:30 +0000 (UTC) From: "Matthew F. Dennis (JIRA)" To: commits@cassandra.apache.org Message-ID: <253373684.1316.1296874410852.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <106097108.9023.1296778528993.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (CASSANDRA-2107) MessageDigests are created in several places, centralize the creation and error handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990889#comment-12990889 ] Matthew F. Dennis commented on CASSANDRA-2107: ---------------------------------------------- The above link is from SVN revision 2 on Sep 15, 2009 "initial code dump". It doesn't look like MessageDigestAlgorithm (or any equivalent) exists in Guava (even in r2 despite the fact that it has javadoc for it). > MessageDigests are created in several places, centralize the creation and error handling > ---------------------------------------------------------------------------------------- > > Key: CASSANDRA-2107 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2107 > Project: Cassandra > Issue Type: Improvement > Affects Versions: 0.7.0 > Reporter: Matthew F. Dennis > Assignee: Matthew F. Dennis > Priority: Minor > Fix For: 0.7.2 > > Attachments: 2107-cassandra-0.7.txt > > > MessageDigest.getInstance("SomeAlg") throws NoSuchAlgorithm exception (a checked exception). This is annoying as it causes everyone that uses standard algs like MD5 to surround their code in try/catch. We should concentrate the creation in one method that doesn't raise an exception (i.e. catches NoSuchAlgorithm and raises a RuntimeException) just to clean the code up a little. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira