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

Align parameters in an annotation, one per line #3

Merged
merged 1 commit into from
Feb 3, 2020

Conversation

thescouser89
Copy link
Contributor

Note that it always wrap if the annotation has more than one parameter.
I couldn't find a setting in Eclipse to tell it to wrap only after the
line limit.

Examples:

-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@class")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME,
+              include = JsonTypeInfo.As.PROPERTY,
+              property = "@class")

Note that it always wrap if the annotation has more than one parameter.
I couldn't find a setting in Eclipse to tell it to wrap only after the
line limit.

Examples:
```java
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@Class")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME,
+              include = JsonTypeInfo.As.PROPERTY,
+              property = "@Class")
```
Copy link
Contributor

@vibe13 vibe13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! :-)

@thescouser89 thescouser89 merged commit 8d30902 into project-ncl:master Feb 3, 2020
rnc added a commit to rnc/ide-config that referenced this pull request Jan 22, 2025
rnc added a commit to rnc/ide-config that referenced this pull request Jan 22, 2025
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.

2 participants