Details
Description
In the following code, we could use diamond operator when calling bar(...).
abstract class A { public void foo() { List<String> values = Arrays.asList("Stop", "pointing", "fingers", "steve"); bar(new ArrayList<String>(values)); // Diamond operator could be used here } abstract void bar(List<String> strings); }
Attachments
Issue Links
- relates to
-
RSPEC-2293 The diamond operator ("<>") should be used
- Active
- links to