From cf640c7e3fc1443a296e26ede955a9bb271e20c6 Mon Sep 17 00:00:00 2001 From: sbplat <71648843+sbplat@users.noreply.github.com> Date: Sat, 30 Dec 2023 14:50:59 -0500 Subject: [PATCH] refactor: have a newline between annotations --- build.gradle | 1 - .../software/SPDF/config/security/SecurityConfiguration.java | 3 ++- .../SPDF/config/security/UserAuthenticationFilter.java | 3 ++- .../SPDF/config/security/UserBasedRateLimitingFilter.java | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 94903c1c..3bf48dcb 100644 --- a/build.gradle +++ b/build.gradle @@ -70,7 +70,6 @@ spotless { importOrder('java', 'javax', 'org', 'com', 'net', 'io') toggleOffOn() - formatAnnotations() trimTrailingWhitespace() indentWithSpaces() endWithNewline() diff --git a/src/main/java/stirling/software/SPDF/config/security/SecurityConfiguration.java b/src/main/java/stirling/software/SPDF/config/security/SecurityConfiguration.java index 8fd0b401..2b7ed6d1 100644 --- a/src/main/java/stirling/software/SPDF/config/security/SecurityConfiguration.java +++ b/src/main/java/stirling/software/SPDF/config/security/SecurityConfiguration.java @@ -35,7 +35,8 @@ public class SecurityConfiguration { @Autowired @Lazy private UserService userService; @Autowired - @Qualifier("loginEnabled") public boolean loginEnabledValue; + @Qualifier("loginEnabled") + public boolean loginEnabledValue; @Autowired private UserAuthenticationFilter userAuthenticationFilter; diff --git a/src/main/java/stirling/software/SPDF/config/security/UserAuthenticationFilter.java b/src/main/java/stirling/software/SPDF/config/security/UserAuthenticationFilter.java index 6b8d047c..b4375568 100644 --- a/src/main/java/stirling/software/SPDF/config/security/UserAuthenticationFilter.java +++ b/src/main/java/stirling/software/SPDF/config/security/UserAuthenticationFilter.java @@ -28,7 +28,8 @@ public class UserAuthenticationFilter extends OncePerRequestFilter { @Autowired @Lazy private UserService userService; @Autowired - @Qualifier("loginEnabled") public boolean loginEnabledValue; + @Qualifier("loginEnabled") + public boolean loginEnabledValue; @Override protected void doFilterInternal( diff --git a/src/main/java/stirling/software/SPDF/config/security/UserBasedRateLimitingFilter.java b/src/main/java/stirling/software/SPDF/config/security/UserBasedRateLimitingFilter.java index cadbfb24..6c315971 100644 --- a/src/main/java/stirling/software/SPDF/config/security/UserBasedRateLimitingFilter.java +++ b/src/main/java/stirling/software/SPDF/config/security/UserBasedRateLimitingFilter.java @@ -36,7 +36,8 @@ public class UserBasedRateLimitingFilter extends OncePerRequestFilter { @Autowired private UserDetailsService userDetailsService; @Autowired - @Qualifier("rateLimit") public boolean rateLimit; + @Qualifier("rateLimit") + public boolean rateLimit; @Override protected void doFilterInternal(