Skip to content

Evaluate the preconditions of a conditional write to a resource that cannot be read (#1753) - #1759

Merged
thboileau-git merged 1 commit into
2.6from
fix/1753-write-only-conditional-put-2.6
Nov 29, 2026
Merged

thboileau-git merged 1 commit into
2.6from
fix/1753-write-only-conditional-put-2.6

Evaluate the preconditions of a conditional write to a resource that …

b41f66a
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 29, 2026 in 1m 32s

Quality Gate failed

Failed conditions
D 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 failure on line 272 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 16 to the 15 allowed.

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

Check warning on line 1139 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=AaIoLSSrXWQgD9NAiz0W&open=AaIoLSSrXWQgD9NAiz0W&pullRequest=1759

Check failure on line 607 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=AaIoLSSrXWQgD9NAiz0T&open=AaIoLSSrXWQgD9NAiz0T&pullRequest=1759

Check failure on line 715 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=AaIoLSSrXWQgD9NAiz0U&open=AaIoLSSrXWQgD9NAiz0U&pullRequest=1759

Check failure on line 1041 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=AaIoLSSrXWQgD9NAiz0V&open=AaIoLSSrXWQgD9NAiz0V&pullRequest=1759

Check warning on line 1044 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=AaIoLSSrXWQgD9NAiz0Q&open=AaIoLSSrXWQgD9NAiz0Q&pullRequest=1759

Check warning on line 118 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=AaIoLSSrXWQgD9NAiz0R&open=AaIoLSSrXWQgD9NAiz0R&pullRequest=1759