Feuermagier / autograder

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

Type can be weakened (e.g. use `Collection` instead of `List` here). Generalization of `ConcreteCollectionCheck` #575

Open Luro02 opened 1 month ago

Luro02 commented 1 month ago

What it does

It should do what the IntelliJ lint does, detect code segments where one can use an interface (or superclass?) instead of the current type, because the code does not use any of the concrete types.

Locations where this might be done:

Lint Name

TYPE_CAN_BE_WEAKENED

Category

oop

Example

<code>

Could be written as:

<code>