diwakergupta / jetcd

Java client for etcd
Apache License 2.0
47 stars 14 forks source link

Argument sanity checks #7

Closed m0wfo closed 10 years ago

m0wfo commented 10 years ago

Check for null & empty strings + check ttl is a real number.

I hear what you're saying about normalizing the strings, but subjectively I like to see all the conditions that will fail fast at one place at the top of the method rather than a nullToEmpty at the call site. Purely my opinion though :)

Do you want me to write some units or is that overkill?

diwakergupta commented 10 years ago

LGTM. :+1: Thanks!