Author: limpbizkit
Date: Tue May 19 00:38:27 2009
New Revision: 965

Modified:
    trunk/src/com/google/inject/internal/Errors.java

Log:
Killing 'bad.bad.bad' for release.

Modified: trunk/src/com/google/inject/internal/Errors.java
==============================================================================
--- trunk/src/com/google/inject/internal/Errors.java    (original)
+++ trunk/src/com/google/inject/internal/Errors.java    Tue May 19 00:38:27  
2009
@@ -60,10 +60,6 @@
   */
  public final class Errors implements Serializable {

-  // TODO(kevinb): gee, ya think we might want to remove this?
-  private static final boolean allowNullsBadBadBad
-      = "I'm a bad  
hack".equals(System.getProperty("guice.allow.nulls.bad.bad.bad"));
-
    /**
     * The root errors object. Used to access the list of error messages.
     */
@@ -503,9 +499,7 @@
     */
    public <T> T checkForNull(T value, Object source, Dependency<?>  
dependency)
        throws ErrorsException {
-    if (value != null
-        || dependency.isNullable()
-        || allowNullsBadBadBad) {
+    if (value != null || dependency.isNullable()) {
        return value;
      }


--~--~---------~--~----~------------~-------~--~----~
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