stop using When class, because dependency on JSR305 is optional.