]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19454 fix code smell
authorZipeng WU <zipeng.wu@sonarsource.com>
Thu, 22 Jun 2023 11:56:01 +0000 (13:56 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 22 Jun 2023 20:02:53 +0000 (20:02 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/newcodeperiod/NewCodeDefinitionResolver.java

index e5efa29a274c5edbfbea720cbc001785cfcc5135..11100f8b8faae0a8bf394583da3a33e1b2e6711b 100644 (file)
@@ -93,7 +93,7 @@ public class NewCodeDefinitionResolver {
     dbClient.newCodePeriodDao().insert(dbSession, dto);
   }
 
-  public static void checkNewCodeDefinitionParam(String newCodeDefinitionType, String newCodeDefinitionValue) {
+  public static void checkNewCodeDefinitionParam(@Nullable String newCodeDefinitionType, @Nullable String newCodeDefinitionValue) {
     if (newCodeDefinitionType == null && newCodeDefinitionValue != null) {
       throw new IllegalArgumentException("New code definition type is required when new code definition value is provided");
     }