Skip to content

Commit

Permalink
Drop unnecessary annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Oct 10, 2024
1 parent cefb3a6 commit c214d97
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
* limitations under the License.
*/
package org.openrewrite.java.testing.mockito;
import org.jetbrains.annotations.NotNull;

import org.openrewrite.ExecutionContext;
import org.openrewrite.NlsRewrite;
import org.openrewrite.Recipe;
import org.openrewrite.TreeVisitor;
import org.openrewrite.java.JavaIsoVisitor;
Expand All @@ -30,21 +29,16 @@
import java.util.stream.Collectors;

public class SonarS6068Fixer extends Recipe {
@NlsRewrite.DisplayName
@NotNull
@Override
public String getDisplayName() {
return "java:S6068";
}

@NotNull
@NlsRewrite.Description
@Override
public String getDescription() {
return "Fixes Sonar Issue [java:S6068: Call to Mockito method \"verify\", \"when\" or \"given\" should be simplified].";
}

@NotNull
@Override
public TreeVisitor<?, ExecutionContext> getVisitor() {
return new SonarS6068FixerVisitor();
Expand Down

0 comments on commit c214d97

Please sign in to comment.