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 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.