-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize code generation for add() #37
Labels
Comments
nmihajlovski
added a commit
that referenced
this issue
Sep 4, 2012
Closed
This was referenced Aug 17, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In add() you might as well call insert() instead of duplicating the generated code:
public Phone add(String type, String number) {
try {
long position = size();
The text was updated successfully, but these errors were encountered: