Skip to content

Replacing multiline string concatenation with Text block #7

Description

@Selleen

SonarQube reported a technical debt issue in the file:

xwiki-platform\xwiki-platform-core\xwiki-platform-appwithinminutes\xwiki-platform-appwithinminutes-ui\src\test\java\org\xwikiplatform\appwithinminutes\ClassEditSheetPageTest.java

The code uses multiline string concatenation with the '+' operator. This reduces readability and maintainability.

Java 15 introduces Text Blocks (""" ) which allow writing multiline strings more clearly.

This issue replaces the current string concatenation with a Text block as recommended by SonarQube rule java:S6126.

Type: Technical Debt
Category: Maintainability / Code Smell

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions