8000 - Pull in only relevant pieces of Guava to android libraries. · robccan/google-http-java-client@0fea3dc · GitHub
[go: up one dir, main page]

Skip to content

Commit 0fea3dc

Browse files
mehmetfejona86
authored andcommitted
- Pull in only relevant pieces of Guava to android libraries.
- Get rid of guava collect dependency and instead use splitToList(). Collect brings in 6000 methods which counts towards Android dex limit. Until Guava can be broken into smaller pieces and proguard well, this should be avoided. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=114826400
1 parent 9fa68d9 commit 0fea3dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

google-http-client/src/main/java/com/google/api/client/http/UriTemplate.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.google.api.client.util.Types;
2121
import com.google.api.client.util.escape.CharEscapers;
2222
import com.google.common.base.Splitter;
23-
import com.google.common.collect.ImmutableList;
2423

2524
import java.util.HashMap;
2625
import java.util.Iterator;
@@ -303,7 +302,7 @@ public static String expand(String pathUri, Object parameters,
303302
String templates = pathUri.substring(next + 1, close);
304303
CompositeOutput compositeOutput = getCompositeOutput(templates);
305304
ListIterator<String> templateIterator =
306-
ImmutableList.copyOf(Splitter.on(',').split(templates)).listIterator();
305+
Splitter.on(',').splitToList(templates).listIterator();
307306
boolean isFirstParameter = true;
308307
while (templateIterator.hasNext()) {
309308
String template = templateIterator.next();

0 commit comments

Comments
 (0)
0