[S1185] Rule should not be shown with certain class annotations

  • SonarQube 7.9.2 / SonarJava 5.13.1
  • minimal code sample to reproduce (with analysis parameter, and potential instructions to compile).
public class MyClass extends BaseClass {

  public void test() { // Sonar Rule S1185 is thrown here although it makes sense to implement this method because i want it to be transactional


The rule does indeed recognize @Transactional on the method but not on the class which has the same effect.

Hello @renoth,

Thanks for the feedback, it makes sense.

Ticket created: SONARJAVA-3612


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.