From b6d964594f481989b8170759ca405bb88aefec26 Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 22 Dec 2024 15:57:00 +0100 Subject: [PATCH] Handle import to avoid unused import (#28266) --- .../_package_/_entityPackage_/web/rest/UserResource.java.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/spring-boot/templates/src/main/java/_package_/_entityPackage_/web/rest/UserResource.java.ejs b/generators/spring-boot/templates/src/main/java/_package_/_entityPackage_/web/rest/UserResource.java.ejs index 5c59ff31644f..04d4e46a887f 100644 --- a/generators/spring-boot/templates/src/main/java/_package_/_entityPackage_/web/rest/UserResource.java.ejs +++ b/generators/spring-boot/templates/src/main/java/_package_/_entityPackage_/web/rest/UserResource.java.ejs @@ -24,7 +24,6 @@ import <%= packageName %>.repository.UserRepository; import <%= packageName %>.security.AuthoritiesConstants; import <%= packageName %>.service.MailService; import org.springframework.data.domain.Sort; -import java.util.Collections; import <%= packageName %>.service.UserService; import <%= packageName %>.service.dto.<%= user.adminUserDto %>; import <%= packageName %>.web.rest.errors.BadRequestAlertException; @@ -77,6 +76,7 @@ import java.net.URISyntaxException; import java.util.ArrayList; import java.util.List; import java.util.Arrays; +import java.util.Collections; <%_ } else { _%> import java.util.*; <%_ } _%>