> +import com.google.inject.Inject; > +import com.google.inject.Singleton; > + > +/** > + * Converts a String into a json string for changing the notes property of > an instance > + * The string is set into the payload of the HttpRequest > + * > + */ > +@Singleton > +public class NotesToJson implements Binder { > + > + private final Json json; > + > + @Inject > + NotesToJson(Json json) { > + this.json = checkNotNull(json, "json");
Once the constructor is only visible to the injector, the null check is redundant (the injector already checks nulls). Remove it. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/756/files#r32069050