You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The codebase contains many instances of multiline string concatenation, especially in testing classes when hardcoded JSON strings are defined. This leads to hard to read/maintan code like this:
Automated mass refactoring tools such as Rewrite could be of use, especially the UseTextBlocks recipe.
When text blocks are used one could use IntelliJ's language injection feature to add syntax highlighting and error detection when dealing with JSON strings.
The text was updated successfully, but these errors were encountered:
The codebase contains many instances of multiline string concatenation, especially in testing classes when hardcoded JSON strings are defined. This leads to hard to read/maintan code like this:
Text blocks is a new feature introduced in Java 15 that fixes this exact problem, turning the above string to:
Automated mass refactoring tools such as Rewrite could be of use, especially the UseTextBlocks recipe.
When text blocks are used one could use IntelliJ's language injection feature to add syntax highlighting and error detection when dealing with JSON strings.
The text was updated successfully, but these errors were encountered: