[hibernate-dev] Code style question

Vlad Mihalcea mihalcea.vlad at gmail.com
Tue May 31 01:06:33 EDT 2016


Hi,

I'm currently using the IDEA code style from the GitHUb repo:

https://github.com/hibernate/hibernate-ide-codestyles

However, not all classes use the same styling, so which one is correct in
regards to Annotations parameters?

1. OnExpectedFailure

@Retention( RetentionPolicy.RUNTIME )
@Target( ElementType.METHOD )
public @interface OnExpectedFailure {
}

2. TestForIssue

@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.TYPE })
public @interface TestForIssue {
   /**
    * The key of a JIRA issue tested.
    * @return The jira issue key
    */
   String jiraKey();
}

Thanks,

Vlad


More information about the hibernate-dev mailing list