A class is removed from the library.
The Person
class has been removed from the library project.
-public class Person { }
Hereafter, we list the broken uses that are currently detected by Maracas.
The Team
class—defined in a client project—declares the members
field of type List<Person>
.
The constructor of the class receives a list of Person
objects as parameter.
Then, broken uses are reported pointing to the field declaration and the constructor declaration.
public class Team {
// Broken use reported here
List<Person> members;
// Broken use reported here
public Team(List<Person> members) {
this.members = members;
}
}