Skip to content

Add spotless plugin and fix grammar issues

6d3e409
Select commit
Loading
Failed to load commit list.
Open

Add spotless plugin and fix grammar issues #1503

Add spotless plugin and fix grammar issues
6d3e409
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 29, 2026 in 52s

Quality Gate failed

Failed conditions
2 Security Hotspots
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 warning on line 128 in org.restlet/src/test/java/org/restlet/engine/header/HeaderTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Swap these 2 arguments so they are in the correct order: expected value, actual value.

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

Check warning on line 49 in org.restlet/src/main/java/org/restlet/engine/security/AuthenticatorHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change the visibility of this constructor to "protected".

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this “Monster Class” into smaller and more specialized ones to reduce its dependencies on other classes from 24 to the maximum authorized 20 or less.

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

Check warning on line 129 in org.restlet/src/test/java/org/restlet/engine/header/HeaderTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Swap these 2 arguments so they are in the correct order: expected value, actual value.

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

Check warning on line 36 in org.restlet/src/test/java/org/restlet/resource/AnnotatedResource04TestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

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

Check warning on line 49 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 failure on line 51 in org.restlet/src/main/java/org/restlet/data/Conditions.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

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

Check failure on line 109 in org.restlet/src/main/java/org/restlet/engine/application/EncodeRepresentation.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check failure on line 200 in org.restlet/src/main/java/org/restlet/engine/header/HeaderUtils.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check failure on line 159 in org.restlet/src/main/java/org/restlet/engine/component/ComponentHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check failure on line 43 in org.restlet/src/main/java/org/restlet/engine/component/ComponentClientDispatcher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 535 in org.restlet/src/main/java/org/restlet/Application.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Format specifiers or lambda should be used instead of string concatenation.

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

Check warning on line 77 in org.restlet/src/main/java/org/restlet/routing/VirtualHost.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this block of code, fill it in, or add a comment explaining why it is empty.

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

Check failure on line 114 in org.restlet.ext.json/src/main/java/org/restlet/ext/json/JsonConverter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 81 in org.restlet.ext.json/src/test/java/org/restlet/ext/json/JsonpRepresentationTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

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

Check warning on line 771 in org.restlet/src/main/java/org/restlet/engine/header/HeaderUtils.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Lambda should be used to defer string concatenation.

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

Check failure on line 234 in org.restlet/src/main/java/org/restlet/engine/ssl/DefaultSslContextFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "javax.net.ssl.trustStorePassword" 3 times.

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

Check failure on line 68 in org.restlet/src/main/java/org/restlet/engine/util/DefaultSaxHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "], SYSTEM [" 4 times.

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

Check warning on line 485 in org.restlet.ext.crypto/src/main/java/org/restlet/ext/crypto/CookieAuthenticator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the built-in formatting to construct this argument.

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

Check warning on line 745 in org.restlet/src/main/java/org/restlet/engine/header/HeaderUtils.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Lambda should be used to defer string concatenation.

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

Check warning on line 243 in org.restlet/src/main/java/org/restlet/security/ChallengeAuthenticator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Format specifiers or lambda should be used instead of string concatenation.

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

Check failure on line 88 in org.restlet.ext.crypto/src/main/java/org/restlet/ext/crypto/internal/HttpDigestVerifier.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check failure on line 38 in org.restlet/src/main/java/org/restlet/engine/application/RangeFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv-PLQrmbX5-9NEU&open=AZ06Mv-PLQrmbX5-9NEU&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 153 to 64, Complexity from 29 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 124 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