com.google.common.base.Preconditions.checkNotNull-s



API Populatity

46 Client projects

Project: com.google

Project RoboBinding/RoboBinding in file ...operty.PresentationModelPropertyChangeSupport.java (2014-07-22)
@@ -1,7 +1,6 @@
 package org.robobinding.property;
 
 import static com.google.common.base.Preconditions.checkArgument;
-import static com.google.common.base.Preconditions.checkNotNull;
 import static org.robobinding.util.Preconditions.checkNotBlank;
 
 import java.util.Map;
@@ -22,8 +21,6 @@ public class PresentationModelPropertyChangeSupport {
     private Map<String, PresentationModelPropertyChangeListeners> propertyToItsChangeListeners;
 
     public PresentationModelPropertyChangeSupport(Object bean) {
-	checkNotNull(bean, "Bean should not be null");
-
 	this.bean = bean;
 	initializeAvailableProperties();
 
Project elasticsearch/elasticsearch in file ...common.inject.internal.AbstractBindingBuilder.java (2011-12-06)
@@ -25,7 +25,7 @@ import org.elasticsearch.common.inject.spi.InstanceBinding;
 import java.lang.annotation.Annotation;
 import java.util.List;
 
-import static org.elasticsearch.common.base.Preconditions.*;
+import static com.google.common.base.Preconditions.checkNotNull;
 
 /**
  * Bind a value or constant.
Project elasticsearch/elasticsearch in file ...rg.elasticsearch.common.inject.name.NamedImpl.java (2011-12-06)
@@ -19,7 +19,7 @@ package org.elasticsearch.common.inject.name;
 import java.io.Serializable;
 import java.lang.annotation.Annotation;
 
-import static org.elasticsearch.common.base.Preconditions.*;
+import static com.google.common.base.Preconditions.checkNotNull;
 
 class NamedImpl implements Named, Serializable {