Skip to content

Commit d244bcf

Browse files
NYgometsrwinch
authored andcommitted
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 <wngud5957@naver.com>
1 parent de23ade commit d244bcf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)