[
https://issues.apache.org/jira/browse/DROIDS-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eugen Paraschiv updated DROIDS-106:
-----------------------------------
Attachment: DROIDS-106.patch
This patch includes the work of changing the existing precondition checking in
droids-core from manual to Guava based checking. Things to note here are: I
kept the exact type of exception that was being thrown in the manual checks,
but later one we may want to check for null with the dedicated static methods
in the Preconditions class (checkNotNull for instance). Also, there are some
other parts of the code that would benefit from additional checks, but this
patch only focuses on replacing the existing checks not writing more. Hope this
helps to display a simple use case for the readability and general improvements
that Guava brings to the code base.
> Introduce Guava (the former google collections) into the droids project
> -----------------------------------------------------------------------
>
> Key: DROIDS-106
> URL: https://issues.apache.org/jira/browse/DROIDS-106
> Project: Droids
> Issue Type: Wish
> Components: core
> Affects Versions: 0.0.1
> Reporter: Eugen Paraschiv
> Fix For: 0.0.1
>
> Attachments: DROIDS-106.patch
>
>
> Google Guava is becoming a standard extension to the collection framework and
> provides some very useful features (besides the obvious collection work which
> is extensive), such as Preconditions (which would standardize the way
> argument checking is done).
> As far as I know, many other Apache projects use Guava (Mahout is one).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.