Skip to content

feature: allow blank lines in enumConstant lists#350

Merged
clementdessoude merged 1 commit intojhipster:masterfrom
clementdessoude:feature/blank-lines-enumConstantLists
Jan 1, 2020
Merged

feature: allow blank lines in enumConstant lists#350
clementdessoude merged 1 commit intojhipster:masterfrom
clementdessoude:feature/blank-lines-enumConstantLists

Conversation

@clementdessoude
Copy link
Copy Markdown
Contributor

@clementdessoude clementdessoude commented Dec 30, 2019

Fix #259

What changed with this PR:

  • blank lines are not completely removed in enumConstant lists: we allow one blank line between two enum constants

Example

// Input
public enum OtherEnum {
  ONE, TWO,

  THREE,



  FOUR,
  /* Five */
  FIVE,

  /* Six */
  SIX


}

// Output
public enum OtherEnum {
  ONE, 
  TWO,

  THREE,

  FOUR,
  /* Five */
  FIVE,

  /* Six */
  SIX
}

@clementdessoude clementdessoude changed the title Feature: allow blank lines in enumConstant lists feature: allow blank lines in enumConstant lists Jan 1, 2020
@clementdessoude clementdessoude merged commit 0c0cbb5 into jhipster:master Jan 1, 2020
@clementdessoude clementdessoude deleted the feature/blank-lines-enumConstantLists branch January 1, 2020 15:58
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.

Javadoc in Enums

1 participant