-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warn or fail when @HollowHashKey is used on unsupported types #186
Comments
@HollowHashIndex
is used on unsupported types
@toolbear, isn't this for Also, how do you envision this? Something at the |
Yup, |
* commit '0032a49676e47a778b713e1cc1439b2e0a13edf3': Java doc and change names of annotation attributes Java Docs for Cinder User facing interfaces Move validation related interfaces to validation package Fix Validator tests to use ViolationImpl Fix IndexValidator to use ViolationImpl Fix DataSpecValidatorTest to use ViolationImpl Define Validator interface with Violation and ValidationConfig interfaces. Make existing Violation be called ViolationImpl Comment out spike-code. To be written later for productized impl Add to Violation and change annotation name to SupportsValidation Data validation - annotatins and meta annotations definitions
The
@HollowHashKey
annotation is supported onMap
andSet
types only. However, it's possible to annotate any type and the client API generator will silently ignore it. As it seems reasonable from examples in the docs to, say, apply it to aList
this can result in confusion or churn later than need be. At least generate a warning when detecting the annotation on a type other thanMap
orSet
, perhaps with it being a hard failure as an optional config (or fail by default with a mechanism to opt-out).The text was updated successfully, but these errors were encountered: