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

Wrong order of words "final" and "static" #85

Open
formatq opened this issue Feb 20, 2020 · 0 comments
Open

Wrong order of words "final" and "static" #85

formatq opened this issue Feb 20, 2020 · 0 comments

Comments

@formatq
Copy link

formatq commented Feb 20, 2020

@XmlRegistry
public class ObjectFactory {

    private final static QName _Login_QNAME = new QName("http://foo.com/bar", "Login");

The Java Language Specification recommends listing modifiers in the following order:

  1. Annotations
  2. public
  3. protected
  4. private
  5. abstract
  6. static
  7. final
  8. transient
  9. volatile
  10. synchronized
  11. native
  12. strictfp

Good

public class ObjectFactory {

    private static final QName _Login_QNAME = new QName("http://foo.com/bar", "Login");```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant