Skip to content

Commit 57e52a7

Browse files
committed
Suppress AspectJ compiler warnings in spring-security-aspects
- Added -Xlint:ignore to compileAspectj task - Added -Xlint:ignore to compileTestAspectj task Fixes the following AspectJ warnings: - AnnotationSecurityAspect.aj:72 [warning] advice defined - AbstractMethodInterceptorAspect.aj:36 [warning] advice defined These warnings occur because the AspectJ compiler detects that advice in deprecated aspect classes may not match any join points, which is expected behavior for deprecated code maintained for backward compatibility. Contributes to gh-18405 Signed-off-by: Park JuHyeong <[email protected]>
1 parent 0a182f1 commit 57e52a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aspects/spring-security-aspects.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
apply plugin: 'io.spring.convention.spring-module'
22
apply plugin: 'io.freefair.aspectj'
3+
apply plugin: 'compile-warnings-error'
34

45
compileAspectj {
56
sourceCompatibility = "17"
67
targetCompatibility = "17"
8+
ajcOptions.compilerArgs += ['-Xlint:ignore']
79
}
810
compileTestAspectj {
911
sourceCompatibility = "17"
1012
targetCompatibility = "17"
13+
ajcOptions.compilerArgs += ['-Xlint:ignore']
1114
}
1215

1316
dependencies {

0 commit comments

Comments
 (0)