diff options
author | 2017-11-08 20:12:47 +0100 | |
---|---|---|
committer | 2017-11-09 18:29:06 +0100 | |
commit | a155b536cb8032feaf2710677d2bdab4b2b43c96 (patch) | |
tree | 793ab3da054e3dc26e6fb00d1fd2fa7793b6799b /src/main/java/com/google/devtools/build/lib/rules/objc/IterableWrapper.java | |
parent | 743ea216879dd0e3037d4b34eff92ba8af493554 (diff) |
Replace all usages of Blaze's Preconditions class with guava.
Blaze had its own class to avoid GC from varargs array creation for the precondition happy path. Guava now (mostly) implements these, making it unnecessary to maintain our own.
This change was almost entirely automated by search-and-replace. A few BUILD files needed fixing up since I removed an export of preconditions from lib:util, which was all done by add_deps. There was one incorrect usage of Preconditions that was caught by error prone (which checks Guava's version of Preconditions) that I had to change manually.
PiperOrigin-RevId: 175033526
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/IterableWrapper.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/objc/IterableWrapper.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/IterableWrapper.java b/src/main/java/com/google/devtools/build/lib/rules/objc/IterableWrapper.java index 671eb83e33..bad76e6c9d 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/IterableWrapper.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/IterableWrapper.java @@ -14,9 +14,8 @@ package com.google.devtools.build.lib.rules.objc; +import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; -import com.google.devtools.build.lib.util.Preconditions; - import java.util.Iterator; /** |