Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-2107

MessageDigests are created in several places, centralize the creation and error handling

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7.3
    • None
    • None

    Description

      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.

      Attachments

        1. 2107-cassandra-0.7.txt
          14 kB
          Matthew F. Dennis

        Activity

          People

            mdennis Matthew F. Dennis
            mdennis Matthew F. Dennis
            Matthew F. Dennis
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified