From: Nolwenn Cadic <98824442+Nolwenn-cadic-sonarsource@users.noreply.github.com> Date: Thu, 29 Aug 2024 07:48:54 +0000 (+0200) Subject: SONAR-22862 Refactor Github and Gitlab permission mappings controllers X-Git-Tag: 10.7.0.96327~146 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=65a4363d09ad035edcb934b97c34cd69a85fbbf2;p=sonarqube.git SONAR-22862 Refactor Github and Gitlab permission mappings controllers --- diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/github/provisioning/permissions/AddGithubPermissionMappingRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/github/provisioning/permissions/AddGithubPermissionMappingRequest.java index 41706ed1a46..f9fa98e7b00 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/github/provisioning/permissions/AddGithubPermissionMappingRequest.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/github/provisioning/permissions/AddGithubPermissionMappingRequest.java @@ -19,13 +19,6 @@ */ package org.sonarqube.ws.client.github.provisioning.permissions; -public class AddGithubPermissionMappingRequest { - private final String githubRole; - private final SonarqubePermissions permissions; - - public AddGithubPermissionMappingRequest(String githubRole, SonarqubePermissions permissions) { - this.githubRole = githubRole; - this.permissions = permissions; - } +public record AddGithubPermissionMappingRequest(String role, SonarqubePermissions permissions) { }