1import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf; 2import org.checkerframework.checker.nullness.qual.NonNull; 3import org.checkerframework.checker.nullness.qual.Nullable; 4 5package com.google.common.base; 6 7class Strings { 8 @EnsuresNonNullIf(result = false, expression = "#1") 9 static boolean isNullOrEmpty(@Nullable String str); 10} 11 12class Preconditions { 13 static <T extends @NonNull Object> T checkNotNull(T reference, @Nullable Object errorMessage); 14} 15