You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Sebastian Schelter (JIRA)" <ji...@apache.org> on 2011/06/10 01:15:59 UTC
[jira] [Updated] (MAHOUT-729) Refactoring: Use Maps.newHashMap()
and Lists.newArrayList() from Guava globally
[ https://issues.apache.org/jira/browse/MAHOUT-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebastian Schelter updated MAHOUT-729:
--------------------------------------
Attachment: MAHOUT-729.patch
> Refactoring: Use Maps.newHashMap() and Lists.newArrayList() from Guava globally
> -------------------------------------------------------------------------------
>
> Key: MAHOUT-729
> URL: https://issues.apache.org/jira/browse/MAHOUT-729
> Project: Mahout
> Issue Type: Improvement
> Affects Versions: 0.6
> Reporter: Sebastian Schelter
> Assignee: Sebastian Schelter
> Attachments: MAHOUT-729.patch
>
>
> I put on my refactoring hat today and started to replace all calls to "new HashMap" with Maps.newHashMap() as well as all calls to "new ArrayList" with Lists.newArrayList() from Guava. This should make the code much more readable as the generic type of a variable needs to be written only once per line. I also refactored some minor things I encountered along the way.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira