From 65a4363d09ad035edcb934b97c34cd69a85fbbf2 Mon Sep 17 00:00:00 2001 From: Nolwenn Cadic <98824442+Nolwenn-cadic-sonarsource@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:48:54 +0200 Subject: [PATCH] SONAR-22862 Refactor Github and Gitlab permission mappings controllers --- .../permissions/AddGithubPermissionMappingRequest.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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) { } -- 2.39.5