We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UseDiamondOperator
<>
1 parent c507f59 commit 020ea7eCopy full SHA for 020ea7e
src/main/java/org/openrewrite/staticanalysis/UseDiamondOperator.java
@@ -40,7 +40,7 @@ public String getDisplayName() {
40
41
@Override
42
public String getDescription() {
43
- return "The diamond operator (`<>`) should be used. Java 7 introduced the diamond operator (<>) to " +
+ return "The diamond operator (`<>`) should be used. Java 7 introduced the diamond operator to " +
44
"reduce the verbosity of generics code. For instance, instead of having to declare a `List`'s " +
45
"type in both its declaration and its constructor, you can now simplify the constructor declaration " +
46
"with `<>`, and the compiler will infer the type.";
0 commit comments