diff --git a/rules/S7180/java/rule.adoc b/rules/S7180/java/rule.adoc index 2592cc7f490..4f267e6d06a 100644 --- a/rules/S7180/java/rule.adoc +++ b/rules/S7180/java/rule.adoc @@ -1,6 +1,7 @@ == Why is this an issue? -Annotating interfaces or interface methods with ``++@Cache*++`` annotations is not recommended. When using CGLIB-based proxies, these annotations will be ignored, and no caching proxy will be created. +Annotating interfaces or interface methods with ``++@Cache*++`` annotations is not recommended by the official Spring documentation. +If you use the weaving-based aspect (mode="aspectj"), the ``++@Cache*++`` annotations will be ignored, and no caching proxy will be created. === What is the potential impact?