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

Do use an abstract class instead of an interface for the information. #1

Merged
merged 1 commit into from
Oct 3, 2012
Merged

Do use an abstract class instead of an interface for the information. #1

merged 1 commit into from
Oct 3, 2012

Conversation

mfriedenhagen
Copy link
Contributor

Do not use an interface for this information, the recommended way by "Effective Java" for
holding public constants is an abstract class with a private constructor to prevent
instantiation. Since Java 5 static imports are available to avoid prefixing this
information with the class name. When you have classes implementing the interface whenever you add a constant the API will change otherwise.

…"Effective Java" for

holding public constants is an abstract class with a private constructor to prevent
instantiation. Since Java 5 static imports are available to avoid prefixing this
information with the class name.
@eskatos
Copy link
Owner

eskatos commented Oct 3, 2012

Looks fine to me, thanks :)

eskatos added a commit that referenced this pull request Oct 3, 2012
Do use an abstract class instead of an interface for the information.
@eskatos eskatos merged commit c30d720 into eskatos:master Oct 3, 2012
@eskatos
Copy link
Owner

eskatos commented Oct 3, 2012

1.3 released, should be in central in a few hours

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

Successfully merging this pull request may close these issues.

3 participants