Add ensureNonNull utility method to Utilities class
---------------------------------------------------
Key: GEOT-3039
URL: http://jira.codehaus.org/browse/GEOT-3039
Project: GeoTools
Issue Type: Wish
Components: core metadata
Reporter: Daniele Romagnoli
Attachments: gt-metadata.patch
Some classes use a ensureNonNull private static method like this:
/**
* Makes sure that an argument is non-null.
*
* @param name Argument name.
* @param object User argument.
* @throws NullPointerException if {...@code object} is null.
*/
public static void ensureNonNull(final String name, final Object object)
which basically check that an argument is non-null.
It would be useful to have such a method exposed as public, as an instance on
the metadata module which has an Utilities class containing static utility
methods.
The attached patch will add this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel