AEM-8 pertains to the use of SCR annotations. When the @Component and @Property annotations are used to describe a Sling Servlet, the rule recommends the use od @SlingServlet.
In our case, the rule tells us to replace the new Declarative Services annotations with @SlingServlet, which we don't even keep on the classpath as we've migrated from the SCR annotations.
AEM-8 pertains to the use of SCR annotations. When the
@Component
and@Property
annotations are used to describe a Sling Servlet, the rule recommends the use od@SlingServlet
.In our case, the rule tells us to replace the new Declarative Services annotations with
@SlingServlet
, which we don't even keep on the classpath as we've migrated from the SCR annotations.Violating code: