Skip to content

Commit 020ea7e

Browse files
committed
Update description for UseDiamondOperator to escape <>
1 parent c507f59 commit 020ea7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openrewrite/staticanalysis/UseDiamondOperator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public String getDisplayName() {
4040

4141
@Override
4242
public String getDescription() {
43-
return "The diamond operator (`<>`) should be used. Java 7 introduced the diamond operator (<>) to " +
43+
return "The diamond operator (`<>`) should be used. Java 7 introduced the diamond operator to " +
4444
"reduce the verbosity of generics code. For instance, instead of having to declare a `List`'s " +
4545
"type in both its declaration and its constructor, you can now simplify the constructor declaration " +
4646
"with `<>`, and the compiler will infer the type.";

0 commit comments

Comments
 (0)