Created
August 15, 2016 02:59
-
-
Save rcx/21a835ebcc811d3198e0255e1299fd94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// What is the problem with this implementation of List#addAll? Assume add() is implemented properly. | |
@Override | |
public boolean addAll(Collection<? extends Statement> c) { | |
boolean ret = false; | |
for (Statement s : c) | |
ret = ret || add(s); | |
return ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment