mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 11:35:57 +01:00
Suppress sonar issue
This issue should not be valid, because branches should have been validated by other layers beforehand.
This commit is contained in:
@@ -63,6 +63,7 @@ public final class BranchDetailsCommandBuilder {
|
||||
* @param branchName Tha name of the branch the details should be computed for.
|
||||
* @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) {
|
||||
LOG.debug("get branch details for repository {} and branch {}", repository, branchName);
|
||||
RepositoryPermissions.read(repository).check();
|
||||
|
||||
Reference in New Issue
Block a user