Preconditions.checkArgument(!clazz.getSimpleName().endsWith(suffix),
clazz.getSimpleName()+ " does not has a ControllerBind annotation and it,s name is not end with " + suffix);
多了个!吧……
public static void checkArgument(boolean expression, Object errorMessage)
{
if(!expression)
throw new IllegalArgumentException(String.valueOf(errorMessage));
else
return;
}
Preconditions.checkArgument(!clazz.getSimpleName().endsWith(suffix), clazz.getSimpleName()+ " does not has a ControllerBind annotation and it,s name is not end with " + suffix);
多了个!吧…… public static void checkArgument(boolean expression, Object errorMessage) { if(!expression) throw new IllegalArgumentException(String.valueOf(errorMessage)); else return; }