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

Collection of smalls improvements

    XMLWordPrintableJSON

Details

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

    Description

      I took some time to apply a series of small code improvements. Follow below:

      1) Replace System.getProperty("file.separator") by File.separator (this ensures type safety)

      2) Replace StringBuffer by StringBuilder because StringBuffer is thread safe and has been used in places that don't need to be thread-safe

      3) In the CasssandraServer class replace the Arrays.asList() by Collections.emptyList();

      Attachments

        1. CASSANDRA-273.patch
          16 kB
          Edward Ribeiro

        Activity

          People

            eribeiro Edward Ribeiro
            eribeiro Edward Ribeiro
            Edward Ribeiro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: