Feuermagier / autograder

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

Remove `subList` check or make it smarter #528

Open Luro02 opened 1 month ago

Luro02 commented 1 month ago

Description

The current implementation isn't any better than using a for-loop. Maybe only suggest this as an extension to .addAll? Like here:

for (int i = start; i < end; i++) {
  result.add(list.get(i));
}
// -> replace with result.addAll(list.subList(start, end));