Revision: 1396
Author: sberlin
Date: Sat Nov 20 17:56:40 2010
Log: Edited wiki page UseNullable through web user interface.
http://code.google.com/p/google-guice/source/detail?r=1396

Modified:
 /wiki/UseNullable.wiki

=======================================
--- /wiki/UseNullable.wiki      Fri Jun  5 10:51:17 2009
+++ /wiki/UseNullable.wiki      Sat Nov 20 17:56:40 2010
@@ -1,7 +1,7 @@
 =Use @Nullable=
To eliminate `NullPointerExceptions` in your codebase, you must be disciplined about null references. We've been successful at this by following and enforcing a simple rule:
   _Every parameter is non-null unless explicitly specified._
-The [http://code.google.com/p/google-collections/ Google Collections library] and [http://code.google.com/p/jsr-305/ JSR-305] have simple APIs to get a nulls under control. `Preconditions.checkNotNull` can be used to fast-fail if a null reference is found, and `...@nullable` can be used to annotate a parameter that permits the `null` value: +The [http://code.google.com/p/guava-libraries/ Guava: Google Core Libraries for Java] and [http://code.google.com/p/jsr-305/ JSR-305] have simple APIs to get a nulls under control. `Preconditions.checkNotNull` can be used to fast-fail if a null reference is found, and `...@nullable` can be used to annotate a parameter that permits the `null` value:
 {{{
 import static com.google.common.base.Preconditions.checkNotNull;
 import static javax.annotation.Nullable;

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to