Description:
LMC looks for a chain of delegating methods. A delegating method does not perform any action but calls the delegate method. It produces a warning message if the length of such a message chain is higher than 2.
Example:
class Array {
private Buffer buf;
int size() {
return buf.size();
}
}
class Buffer {
private List list;
int size() {
return list.size();
}
}
class List {
...
}