Suppress sonar issue

This issue should not be valid, because branches should have been validated by
other layers beforehand.
This commit is contained in:
René Pfeuffer
2021-12-13 18:09:59 +01:00
parent e2d63cc2a1
commit c86c9a21c0

View File

@@ -63,6 +63,7 @@ public final class BranchDetailsCommandBuilder {
* @param branchName Tha name of the branch the details should be computed for. * @param branchName Tha name of the branch the details should be computed for.
* @return The result object containing the details for the branch. * @return The result object containing the details for the branch.
*/ */
@SuppressWarnings("javasecurity:S5145") // We validate branch names in the rest layer
public BranchDetailsCommandResult execute(String branchName) { public BranchDetailsCommandResult execute(String branchName) {
LOG.debug("get branch details for repository {} and branch {}", repository, branchName); LOG.debug("get branch details for repository {} and branch {}", repository, branchName);
RepositoryPermissions.read(repository).check(); RepositoryPermissions.read(repository).check();