Skip to content

Commit 1c4a8ca

Browse files
committed
Use final fields for displayName and description
1 parent a7960ef commit 1c4a8ca

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

src/main/java/org/openrewrite/java/migrate/AddMapstructAnnotationProcessorPath.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,10 @@ public class AddMapstructAnnotationProcessorPath extends ScanningRecipe<AddMapst
3434
private static final String MAPSTRUCT_ARTIFACT = "mapstruct";
3535
private static final String MAPSTRUCT_PROCESSOR_ARTIFACT = "mapstruct-processor";
3636

37-
@Override
38-
public String getDisplayName() {
39-
return "Add `mapstruct-processor` to the `maven-compiler-plugin` annotation processor paths";
40-
}
37+
String displayName = "Add `mapstruct-processor` to the `maven-compiler-plugin` annotation processor paths";
4138

42-
@Override
43-
public String getDescription() {
44-
return "Add the `mapstruct-processor` annotation processor path, matching the version of the `mapstruct` dependency, " +
45-
"so that MapStruct mappers are generated when annotation processing is configured explicitly.";
46-
}
39+
String description = "Add the `mapstruct-processor` annotation processor path, matching the version of the `mapstruct` dependency, " +
40+
"so that MapStruct mappers are generated when annotation processing is configured explicitly.";
4741

4842
public static class Accumulator {
4943
@Nullable

0 commit comments

Comments
 (0)