Skip to content
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

Extracting exception key to constant #772

Merged
merged 2 commits into from
Sep 1, 2014
Merged

Conversation

garcia-jj
Copy link
Member

Extracting converter exception keys to a constant allow users to see which keys are used in ResourceBundle, because Javadocs generate a page called "Constant Field Values".

When I refactor the code I see some wrong messages like not_a_valid_interger to a Short, Byte and Long converters. So I choose to use always not_a_valid_number as used by byte, BigDecimal, Double and Float uses. What you think about this change, devs?

@rponte
Copy link
Contributor

rponte commented Sep 1, 2014

It's fair!

On Monday, September 1, 2014, Otávio Garcia notifications@github.com
wrote:

Extracting converter exception keys to a constant allow users to see which
keys are used in ResourceBundle, because Javadocs generate a page called
"Constant Field Values".

When I refactor the code I see some wrong messages like
not_a_valid_interger to a Short, Byte and Long converters. So I choose to
use always not_a_valid_number as used by byte, BigDecimal, Double and

Float uses. What you think about this change, devs?

You can merge this Pull Request by running

git pull https://github.com/caelum/vraptor4 ot-fixingconverters

Or view, comment on, or merge it at:

#772
Commit Summary

  • Extracting exception key to constant
  • Fixing wrong message keys

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#772.

Rafael Ponte
TriadWorks | Formação Java
http://cursos.triadworks.com.br

@Turini
Copy link
Member

Turini commented Sep 1, 2014

good point, +1 changing it (but maybe we should add a changelog note)

garcia-jj added a commit that referenced this pull request Sep 1, 2014
Extracting exception key to constant
@garcia-jj garcia-jj merged commit 4596ce2 into master Sep 1, 2014
@garcia-jj garcia-jj deleted the ot-fixingconverters branch September 1, 2014 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants