From 8076a8e7785d1e9ea90cee6d0765a4b2cbf2d16a Mon Sep 17 00:00:00 2001 From: Seonghun Jeong Date: Fri, 12 Dec 2025 20:07:32 +0900 Subject: [PATCH] Remove duplicate null check for identifier in RestDocumentationGenerator Signed-off-by: Seonghun Jeong --- .../restdocs/generate/RestDocumentationGenerator.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-restdocs-core/src/main/java/org/springframework/restdocs/generate/RestDocumentationGenerator.java b/spring-restdocs-core/src/main/java/org/springframework/restdocs/generate/RestDocumentationGenerator.java index c177f11b..e299b0a5 100644 --- a/spring-restdocs-core/src/main/java/org/springframework/restdocs/generate/RestDocumentationGenerator.java +++ b/spring-restdocs-core/src/main/java/org/springframework/restdocs/generate/RestDocumentationGenerator.java @@ -161,7 +161,6 @@ public RestDocumentationGenerator(String identifier, RequestConverter reque Assert.notNull(identifier, "identifier must be non-null"); Assert.notNull(requestConverter, "requestConverter must be non-null"); Assert.notNull(responseConverter, "responseConverter must be non-null"); - Assert.notNull(identifier, "identifier must be non-null"); Assert.notNull(requestPreprocessor, "requestPreprocessor must be non-null"); Assert.notNull(responsePreprocessor, "responsePreprocessor must be non-null"); Assert.notNull(snippets, "snippets must be non-null");