I am using multi line strings in java 17.0.2 but have been recieving the following error
String test = """
{
"deploymentResourceId": "deployment"
}
""";
Error:
/sparta/input/PackageResource.java:262:25: expecting SEMI, found '"
{
"'
2023-10-17 23:31:16.027 UTC [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (verify-style-1) on project : Execution verify-style-1 of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check failed: begin 1253, end 18, length 18 -> [Help 1]
Using string builder works fine but i want to use multi line strings