chapter1——Artist#copy
jerryqiang opened this issue · comments
Night Glow commented
Artist#copy
public Artist copy() {
List members = getMembers().map(Artist::copy).collect(toList());
return new Artist(name, members, nationality);
}
self invoke, and fall into an infinite loop
Richard Warburton commented
Only if you make an artist a member of itself, which it shouldn't be - right?