Skip to content

Commit

Permalink
Merge pull request #536 from HubSpot/optimize-pylist
Browse files Browse the repository at this point in the history
remove overrides for append and insert
  • Loading branch information
boulter authored Nov 19, 2020
2 parents 9808515 + a5382fa commit 7a0116b
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@ public SizeLimitingPyList(List<Object> list, int maxSize) {
}
}

@Override
public boolean append(Object e) {
checkSize(size() + 1);
return super.append(e);
}

@Override
public void insert(int i, Object e) {
checkSize(size() + 1);
super.insert(i, e);
}

@Override
public boolean add(Object element) {
checkSize(size() + 1);
Expand Down

0 comments on commit 7a0116b

Please sign in to comment.