Skip to content

Commit

Permalink
feat: Removed NotNull annotations
Browse files Browse the repository at this point in the history
Refs: #634
  • Loading branch information
Andrei Shakirin committed Nov 22, 2024
1 parent e4ddc8f commit 1c62a5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
public class InlineCommentSpringProperties extends Recipe {

@Override
public @NotNull @NlsRewrite.DisplayName String getDisplayName() {
public String getDisplayName() {
return "Comment spring properties";
}

@Override
public @NotNull @NlsRewrite.Description String getDescription() {
public String getDescription() {
return "Add inline comments to specified spring properties.";
}

Expand All @@ -48,7 +48,7 @@ public class InlineCommentSpringProperties extends Recipe {
String comment;

@Override
public @NotNull TreeVisitor<?, ExecutionContext> getVisitor() {
public TreeVisitor<?, ExecutionContext> getVisitor() {
String inlineComment = " # " + comment;
return new TreeVisitor<Tree, ExecutionContext>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import static org.openrewrite.properties.Assertions.properties;
import static org.openrewrite.yaml.Assertions.yaml;

public class InlineCommentSpringPropertiesTest implements RewriteTest {
class InlineCommentSpringPropertiesTest implements RewriteTest {

@Test
void shouldInsertInlineCommentsIntoProperties() {
Expand Down

0 comments on commit 1c62a5d

Please sign in to comment.