Skip to content

Taken into account PR comment review

075a0f9
Select commit
Loading
Failed to load commit list.
Open

Add spotless plugin and fix grammar issues #1503

Taken into account PR comment review
075a0f9
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 26, 2026 in 52s

Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 122 in org.restlet/src/main/java/org/restlet/engine/local/Entity.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 73 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv4YLQrmbX5-9NDg&open=AZ06Mv4YLQrmbX5-9NDg&pullRequest=1503

Check warning on line 1024 in org.restlet/src/main/java/org/restlet/data/Status.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the number of non-empty switch cases from 46 to at most 30.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwHPLQrmbX5-9NFx&open=AZ06MwHPLQrmbX5-9NFx&pullRequest=1503

Check warning on line 56 in org.restlet/src/main/java/org/restlet/representation/ObjectRepresentation.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make this "public static VARIANT_OBJECT_BINARY_SUPPORTED" field final

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwIaLQrmbX5-9NF9&open=AZ06MwIaLQrmbX5-9NF9&pullRequest=1503

Check warning on line 713 in org.restlet/src/main/java/org/restlet/engine/ssl/DefaultSslContextFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwCdLQrmbX5-9NE7&open=AZ06MwCdLQrmbX5-9NE7&pullRequest=1503

Check warning on line 586 in org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/XmlWriter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use an "AtomicInteger" for this field; its operations are atomic.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwYlLQrmbX5-9NH1&open=AZ06MwYlLQrmbX5-9NH1&pullRequest=1503

Check failure on line 101 in org.restlet/src/main/java/org/restlet/engine/local/ZipClientHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv41LQrmbX5-9NDl&open=AZ06Mv41LQrmbX5-9NDl&pullRequest=1503

Check warning on line 113 in org.restlet/src/main/java/org/restlet/engine/resource/ClientInvocationHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 154 to 64, Complexity from 28 to 14, Nesting Level from 10 to 2, Number of Variables from 24 to 6.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv7YLQrmbX5-9ND9&open=AZ06Mv7YLQrmbX5-9ND9&pullRequest=1503

Check warning on line 848 in org.restlet/src/main/java/org/restlet/data/Status.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the number of non-empty switch cases from 52 to at most 30.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwHPLQrmbX5-9NFw&open=AZ06MwHPLQrmbX5-9NFw&pullRequest=1503

Check warning on line 218 in org.restlet/src/main/java/org/restlet/engine/ssl/DefaultSslContextFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ1eSi_fS1usNdOdyPkR&open=AZ1eSi_fS1usNdOdyPkR&pullRequest=1503

Check warning on line 115 in org.restlet/src/main/java/org/restlet/data/CookieSetting.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Constructor has 9 parameters, which is greater than 7 authorized.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwEKLQrmbX5-9NFX&open=AZ06MwEKLQrmbX5-9NFX&pullRequest=1503

Check warning on line 122 in org.restlet/src/main/java/org/restlet/engine/local/Entity.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 73 to 64, Complexity from 30 to 14, Nesting Level from 5 to 2, Number of Variables from 22 to 6.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ1er9yArHfHDGLiFlJg&open=AZ1er9yArHfHDGLiFlJg&pullRequest=1503

Check warning on line 63 in org.restlet.ext.crypto/src/main/java/org/restlet/ext/crypto/internal/HttpDigestHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv0rLQrmbX5-9NC6&open=AZ06Mv0rLQrmbX5-9NC6&pullRequest=1503

Check warning on line 908 in org.restlet/src/main/java/org/restlet/Request.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwNuLQrmbX5-9NG7&open=AZ06MwNuLQrmbX5-9NG7&pullRequest=1503

Check warning on line 123 in org.restlet/src/main/java/org/restlet/engine/application/ApplicationHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv_QLQrmbX5-9NEc&open=AZ06Mv_QLQrmbX5-9NEc&pullRequest=1503

Check warning on line 569 in org.restlet/src/main/java/org/restlet/engine/util/StringUtils.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwAULQrmbX5-9NEi&open=AZ06MwAULQrmbX5-9NEi&pullRequest=1503

Check failure on line 169 in org.restlet/src/main/java/org/restlet/service/ConverterService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwIKLQrmbX5-9NF4&open=AZ06MwIKLQrmbX5-9NF4&pullRequest=1503

Check failure on line 99 in org.restlet/src/main/java/org/restlet/engine/resource/AnnotationUtils.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv7LLQrmbX5-9ND4&open=AZ06Mv7LLQrmbX5-9ND4&pullRequest=1503

Check warning on line 52 in org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/XmlRepresentation.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This class has 6 parents which is greater than 5 authorized.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwZNLQrmbX5-9NH6&open=AZ06MwZNLQrmbX5-9NH6&pullRequest=1503

Check warning on line 100 in org.restlet/src/main/java/org/restlet/Restlet.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwOALQrmbX5-9NG8&open=AZ06MwOALQrmbX5-9NG8&pullRequest=1503

Check failure on line 84 in org.restlet/src/main/java/org/restlet/engine/local/EntityClientHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv5QLQrmbX5-9NDo&open=AZ06Mv5QLQrmbX5-9NDo&pullRequest=1503

Check warning on line 110 in org.restlet.ext.crypto/src/main/java/org/restlet/ext/crypto/internal/AwsVerifier.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty array instead of null.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv0TLQrmbX5-9NC3&open=AZ06Mv0TLQrmbX5-9NC3&pullRequest=1503

Check warning on line 16 in org.restlet/src/main/java/org/restlet/engine/Helper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this empty class, write its code or make it an "interface".

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwDeLQrmbX5-9NFI&open=AZ06MwDeLQrmbX5-9NFI&pullRequest=1503

Check failure on line 128 in org.restlet/src/main/java/org/restlet/service/ConverterService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove usage of generic wildcard type.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ1er9_ErHfHDGLiFlJj&open=AZ1er9_ErHfHDGLiFlJj&pullRequest=1503

Check warning on line 184 in org.restlet/src/main/java/org/restlet/engine/ssl/SslUtils.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ1aa4E3Ubbqgtr7j832&open=AZ1aa4E3Ubbqgtr7j832&pullRequest=1503

Check failure on line 423 in org.restlet/src/main/java/org/restlet/resource/ServerResource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwKjLQrmbX5-9NGR&open=AZ06MwKjLQrmbX5-9NGR&pullRequest=1503