Skip to content

Commit

Permalink
Switch pre-Java7 Lists factories to use Java7 diamond operator instead.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187492538
  • Loading branch information
blickly authored and Tyler Breisacher committed Mar 3, 2018
1 parent bddfe49 commit f491995
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/com/google/javascript/jscomp/deps/DepsGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.google.common.base.Function;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMultiset;
import com.google.common.collect.Lists;
import com.google.common.collect.Multimap;
import com.google.common.collect.Multimaps;
import com.google.common.collect.Multiset;
Expand Down Expand Up @@ -419,7 +418,7 @@ private void addToProvideMap(
Map<String, DependencyInfo> providesMap,
boolean isFromDepsFile) {
for (DependencyInfo depInfo : depInfos) {
List<String> provides = Lists.newArrayList(depInfo.getProvides());
List<String> provides = new ArrayList<>(depInfo.getProvides());

// Add a munged symbol to the provides map so that lookups by path requires work as intended.
if (isFromDepsFile) {
Expand Down

0 comments on commit f491995

Please sign in to comment.