You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Edward Ribeiro (JIRA)" <ji...@apache.org> on 2009/07/04 04:38:47 UTC

[jira] Updated: (CASSANDRA-273) Collection of smalls improvements

     [ https://issues.apache.org/jira/browse/CASSANDRA-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Ribeiro updated CASSANDRA-273:
-------------------------------------

    Attachment: CASSANDRA-273.patch

The patch is attached.

> Collection of smalls improvements
> ---------------------------------
>
>                 Key: CASSANDRA-273
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-273
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Edward Ribeiro
>            Priority: Minor
>         Attachments: CASSANDRA-273.patch
>
>
> 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();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.