Feuermagier / autograder

Automatic grading of student's Java code
MIT License
13 stars 7 forks source link

Improve `addAll` suggestion by inlining the expression into the constructor invocation, when possible #570

Open Luro02 opened 1 month ago

Luro02 commented 1 month ago

Description

Instead of suggesting

List<T> list = new ArrayList<>();
list.addAll(otherList);

one could suggest

List<T> list = new ArrayList<>(otherList);

Implementation should be simple;