From c83122f031c1efb77e613c1e59a27ab3189bf1ed Mon Sep 17 00:00:00 2001 From: Kirill Mokevnin Date: Sun, 15 Oct 2023 19:05:35 +0600 Subject: [PATCH] update Signed-off-by: Kirill Mokevnin --- build.gradle.kts | 1 - src/main/java/io/hexlet/blog/config/SecurityConfig.java | 2 +- .../io/hexlet/blog/controller/api/PostsCommentsController.java | 1 - src/main/java/io/hexlet/blog/util/NamedRoutes.java | 0 4 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 src/main/java/io/hexlet/blog/util/NamedRoutes.java diff --git a/build.gradle.kts b/build.gradle.kts index ad00424..d46cf4d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -39,7 +39,6 @@ dependencies { implementation("net.javacrumbs.json-unit:json-unit-assertj:3.2.2") implementation("net.datafaker:datafaker:2.0.2") - // implementation("io.sentry:sentry-spring-boot-starter-jqueryakarta:6.28.0") runtimeOnly("com.h2database:h2:2.2.224") testImplementation("org.springframework.security:spring-security-test") testImplementation("org.springframework.boot:spring-boot-starter-test") diff --git a/src/main/java/io/hexlet/blog/config/SecurityConfig.java b/src/main/java/io/hexlet/blog/config/SecurityConfig.java index 4a43602..ab96df7 100644 --- a/src/main/java/io/hexlet/blog/config/SecurityConfig.java +++ b/src/main/java/io/hexlet/blog/config/SecurityConfig.java @@ -63,7 +63,7 @@ public AuthenticationManager authenticationManager(HttpSecurity http) throws Exc @Bean public AuthenticationProvider daoAuthProvider(AuthenticationManagerBuilder auth) { - DaoAuthenticationProvider provider = new DaoAuthenticationProvider(); + var provider = new DaoAuthenticationProvider(); provider.setUserDetailsService(userService); provider.setPasswordEncoder(passwordEncoder); return provider; diff --git a/src/main/java/io/hexlet/blog/controller/api/PostsCommentsController.java b/src/main/java/io/hexlet/blog/controller/api/PostsCommentsController.java index 3c5b2f5..7d18c4b 100644 --- a/src/main/java/io/hexlet/blog/controller/api/PostsCommentsController.java +++ b/src/main/java/io/hexlet/blog/controller/api/PostsCommentsController.java @@ -13,7 +13,6 @@ import io.hexlet.blog.dto.PostCommentDTO; import io.hexlet.blog.dto.PostCommentParamsDTO; import io.hexlet.blog.mapper.PostCommentMapper; -import io.hexlet.blog.model.PostComment; import io.hexlet.blog.repository.PostCommentRepository; import io.hexlet.blog.specification.PostCommentSpecification; diff --git a/src/main/java/io/hexlet/blog/util/NamedRoutes.java b/src/main/java/io/hexlet/blog/util/NamedRoutes.java deleted file mode 100644 index e69de29..0000000