Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(71)

Issue 6092044: Start on Guava issue 196: control builder capacity (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by Louis Wasserman
Modified:
11 years, 11 months ago
Reviewers:
Chris Povirk
Visibility:
Public.

Patch Set 1 #

Total comments: 7

Patch Set 2 : Respond to comments #

Patch Set 3 : Respond to comments #

Patch Set 4 : Respond to comments #

Total comments: 1

Patch Set 5 : Respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -15 lines) Patch
M guava-tests/test/com/google/common/collect/ImmutableListTest.java View 1 2 3 4 3 chunks +42 lines, -4 lines 0 comments Download
M guava/src/com/google/common/collect/ImmutableList.java View 1 2 3 7 chunks +76 lines, -9 lines 0 comments Download
M guava/src/com/google/common/collect/ImmutableSet.java View 2 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 7
Louis Wasserman
12 years ago (2012-04-27 01:41:01 UTC) #1
Louis Wasserman
I'm not exposing the methods until we all agree on the API, but these would ...
12 years ago (2012-04-27 01:41:58 UTC) #2
Chris Povirk
http://codereview.appspot.com/6092044/diff/1/guava-tests/test/com/google/common/collect/ImmutableListTest.java File guava-tests/test/com/google/common/collect/ImmutableListTest.java (right): http://codereview.appspot.com/6092044/diff/1/guava-tests/test/com/google/common/collect/ImmutableListTest.java#newcode396 guava-tests/test/com/google/common/collect/ImmutableListTest.java:396: assertEquals(Integer.MAX_VALUE, ImmutableList.expandedCapacity(0, Integer.MAX_VALUE)); How about the other end? Do ...
12 years ago (2012-04-30 18:47:04 UTC) #3
Louis Wasserman
http://codereview.appspot.com/6092044/diff/1/guava-tests/test/com/google/common/collect/ImmutableListTest.java File guava-tests/test/com/google/common/collect/ImmutableListTest.java (right): http://codereview.appspot.com/6092044/diff/1/guava-tests/test/com/google/common/collect/ImmutableListTest.java#newcode396 guava-tests/test/com/google/common/collect/ImmutableListTest.java:396: assertEquals(Integer.MAX_VALUE, ImmutableList.expandedCapacity(0, Integer.MAX_VALUE)); On 2012/04/30 18:47:04, Chris Povirk wrote: ...
12 years ago (2012-05-02 17:37:38 UTC) #4
Louis Wasserman
Update: we were already emulating Arrays.copyOf internally, so I just used that instead.
12 years ago (2012-05-02 17:51:29 UTC) #5
Chris Povirk
LGTM http://codereview.appspot.com/6092044/diff/1/guava/src/com/google/common/collect/ImmutableList.java File guava/src/com/google/common/collect/ImmutableList.java (right): http://codereview.appspot.com/6092044/diff/1/guava/src/com/google/common/collect/ImmutableList.java#newcode708 guava/src/com/google/common/collect/ImmutableList.java:708: contents[size++] = checkNotNull(e); On 2012/05/02 17:37:39, Louis Wasserman ...
12 years ago (2012-05-02 18:36:21 UTC) #6
Louis Wasserman
12 years ago (2012-05-02 18:45:33 UTC) #7

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b