We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When defining an enumeration item with an integer value, this value is indented, but no the rest of the enumeration items.
By the way, if a method exists after the declaration of the items, there is no blank line before.
Input:
public enum WikipediaNamespace { // Odd numbers correspond to the Talk namespaces ARTICLE(0), USER(2), WIKIPEDIA(4), FILE(6), MEDIA_WIKI(8), TEMPLATE(10), HELP(12), CATEGORY(14), PORTAL(100), WIKI_PROJECT(102), ANNEX(104), MODULE(828); private static final Map<Integer, WikipediaNamespace> map = Arrays.stream(WikipediaNamespace.values()).collect(Collectors.toMap(ns -> ns.value, ns -> ns)); [...] }
Output (0.4.0):
public enum WikipediaNamespace { // Odd numbers correspond to the Talk namespaces ARTICLE( 0 ), USER(2), WIKIPEDIA(4), FILE(6), MEDIA_WIKI(8), TEMPLATE(10), HELP(12), CATEGORY(14), PORTAL(100), WIKI_PROJECT(102), ANNEX(104), MODULE(828); private static final Map<Integer, WikipediaNamespace> map = Arrays .stream(WikipediaNamespace.values()) .collect(Collectors.toMap(ns -> ns.value, ns -> ns)); [...] }
The text was updated successfully, but these errors were encountered:
Thank you for reporting all this @benjavalero !
Just tested with master branch, and it is printed like this:
public enum WikipediaNamespace { // Odd numbers correspond to the Talk namespaces ARTICLE(0), USER(2), WIKIPEDIA(4), FILE(6), MEDIA_WIKI(8), TEMPLATE(10), HELP(12), CATEGORY(14), PORTAL(100), WIKI_PROJECT(102), ANNEX(104), MODULE(828); private static final Map<Integer, WikipediaNamespace> map = Arrays .stream(WikipediaNamespace.values()) .collect(Collectors.toMap(ns -> ns.value, ns -> ns)); }
I'll keep this issue open to track the issue with the removed blank line. That is why I am changing the title. The first issue was fixed in #278
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When defining an enumeration item with an integer value, this value is indented, but no the rest of the enumeration items.
By the way, if a method exists after the declaration of the items, there is no blank line before.
Input:
Output (0.4.0):
The text was updated successfully, but these errors were encountered: