From d72e103af1e7ea9d0524119c9a32f11188a758ba Mon Sep 17 00:00:00 2001 From: C4tWithShell Date: Tue, 12 Dec 2023 01:57:20 +0300 Subject: [PATCH] Update 1.16.1 for sonar 10.3 --- .../sonarqube/plugin/ce/CommunityBranchLoaderDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/CommunityBranchLoaderDelegate.java b/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/CommunityBranchLoaderDelegate.java index 677e5bc..2d06262 100644 --- a/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/CommunityBranchLoaderDelegate.java +++ b/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/CommunityBranchLoaderDelegate.java @@ -102,7 +102,7 @@ private static Branch createPullRequest(ScannerReport.Metadata metadata, DbClien private static Branch createBranch(DbClient dbClient, String branchName, String projectUuid, String targetBranch) { String targetUuid; if (null == targetBranch) { - Optional branchDto = findBranchByUuid(dbClient, projectUuid); + Optional branchDto = findBranchByUuid(projectUuid, dbClient); if (branchDto.isPresent()) { targetUuid = branchDto.get().getUuid(); } else {