-
Notifications
You must be signed in to change notification settings - Fork 329
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
Adding feature to configure upload size with annotation #785
Conversation
Nice and useful feature! On Fri, Sep 5, 2014 at 4:33 AM, Otávio Garcia notifications@github.com
Rafael Ponte |
uploader.setSizeMax(config.getSizeLimit()); | ||
uploader.setFileSizeMax(config.getFileSizeLimit()); | ||
|
||
UploadSizeLimit uploadSizeLimit = event.getMethod().getAnnotation(UploadSizeLimit.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think of changing to event.getMethodAnnotation(...)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so because we already have a method called getAnnotations
. Because of this, I think that methods needs to get the same name pattern.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so event.getAnnotation(...)
...
only missing docs, after adding it |
Right. I'll soon. Thank you. |
I have changed some words in the docs to make it more easily to understand. Let me know if the text are good, or if need more improvements. Thank you devs. |
Adding feature to configure upload size with annotation
Because there are some times we want to configure upload size with different values for another method. Or we want to configure a value without overriding a class.
If you like it, I'll add documentation.