Skip to content

Add Redirector.MODE_CLIENT_PERMANENT_STRICT answering 308 (#1746) - #1749

Merged
thboileau-git merged 1 commit into
2.6from
feature/1746-redirector-308-2.6
Nov 28, 2026
Merged

thboileau-git merged 1 commit into
2.6from
feature/1746-redirector-308-2.6

Add Redirector.MODE_CLIENT_PERMANENT_STRICT answering 308 (#1746)

8b8a0bd
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 28, 2026 in 58s

Quality Gate failed

Failed conditions
5.0% Duplication on New Code (required ≤ 3%)
C Maintainability 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 307 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpq&open=AaIiqQZO3dePIV2HLCpq&pullRequest=1749

Check warning on line 315 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpi&open=AaIiqQZO3dePIV2HLCpi&pullRequest=1749

Check warning on line 307 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCph&open=AaIiqQZO3dePIV2HLCph&pullRequest=1749

Check failure on line 964 in org.restlet.java/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 32 to the 15 allowed.

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

Check warning on line 290 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpf&open=AaIiqQZO3dePIV2HLCpf&pullRequest=1749

Check failure on line 279 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a default case to this switch.

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

Check warning on line 282 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpe&open=AaIiqQZO3dePIV2HLCpe&pullRequest=1749

Check warning on line 290 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpo&open=AaIiqQZO3dePIV2HLCpo&pullRequest=1749

Check warning on line 298 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpp&open=AaIiqQZO3dePIV2HLCpp&pullRequest=1749

Check warning on line 323 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpj&open=AaIiqQZO3dePIV2HLCpj&pullRequest=1749

Check failure on line 530 in org.restlet.java/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 26 to the 15 allowed.

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

Check warning on line 323 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCps&open=AaIiqQZO3dePIV2HLCps&pullRequest=1749

Check warning on line 765 in org.restlet.java/org.restlet/src/main/java/org/restlet/Response.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Complete the task associated to this TODO comment.

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

Check warning on line 472 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpl&open=AaIiqQZO3dePIV2HLCpl&pullRequest=1749

Check warning on line 315 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpr&open=AaIiqQZO3dePIV2HLCpr&pullRequest=1749

Check warning on line 282 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpn&open=AaIiqQZO3dePIV2HLCpn&pullRequest=1749

Check warning on line 967 in org.restlet.java/org.restlet/src/main/java/org/restlet/resource/ServerResource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the total number of break and continue statements in this loop to use at most one.

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

Check warning on line 1062 in org.restlet.java/org.restlet/src/main/java/org/restlet/resource/ServerResource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch Exception instead of Throwable.

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

Check warning on line 298 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpg&open=AaIiqQZO3dePIV2HLCpg&pullRequest=1749

Check warning on line 331 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpt&open=AaIiqQZO3dePIV2HLCpt&pullRequest=1749

Check warning on line 117 in org.restlet.java/org.restlet/src/main/java/org/restlet/resource/ServerResource.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=AaIiqQOo3dePIV2HLCpZ&open=AaIiqQOo3dePIV2HLCpZ&pullRequest=1749

Check failure on line 638 in org.restlet.java/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 31 to the 15 allowed.

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

Check warning on line 331 in org.restlet.java/org.restlet/src/main/java/org/restlet/routing/Redirector.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=AaIiqQZO3dePIV2HLCpk&open=AaIiqQZO3dePIV2HLCpk&pullRequest=1749