diff options
author | 2016-08-15 21:54:55 +0000 | |
---|---|---|
committer | 2016-08-16 15:21:17 +0000 | |
commit | 3c0adb26bac6d756fb97e4bcc6d4e5b2cefa5eeb (patch) | |
tree | c77f6438711f4b23d6c528907a81e23dc9e6dc91 /src/test/java/com/google/devtools/build/skyframe/WalkableGraphUtils.java | |
parent | 89125d5ee83f562c309a792a7c56ce24452e61ea (diff) |
Allow Skyframe graph lookups and value retrievals to throw InterruptedException.
The only place we now don't handle InterruptedException is in the action graph created after analysis, since I'm not sure that will be around for that much longer.
--
MOS_MIGRATED_REVID=130327770
Diffstat (limited to 'src/test/java/com/google/devtools/build/skyframe/WalkableGraphUtils.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/skyframe/WalkableGraphUtils.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/skyframe/WalkableGraphUtils.java b/src/test/java/com/google/devtools/build/skyframe/WalkableGraphUtils.java index 6c6f0c7b2a..7095371508 100644 --- a/src/test/java/com/google/devtools/build/skyframe/WalkableGraphUtils.java +++ b/src/test/java/com/google/devtools/build/skyframe/WalkableGraphUtils.java @@ -19,11 +19,13 @@ import com.google.common.collect.Iterables; /** Utility methods for querying (r)deps of nodes from {@link WalkableGraph}s more concisely. */ public class WalkableGraphUtils { - public static Iterable<SkyKey> getDirectDeps(WalkableGraph graph, SkyKey key) { + public static Iterable<SkyKey> getDirectDeps(WalkableGraph graph, SkyKey key) + throws InterruptedException { return Iterables.getOnlyElement(graph.getDirectDeps(ImmutableList.of(key)).values()); } - public static Iterable<SkyKey> getReverseDeps(WalkableGraph graph, SkyKey key) { + public static Iterable<SkyKey> getReverseDeps(WalkableGraph graph, SkyKey key) + throws InterruptedException { return Iterables.getOnlyElement(graph.getReverseDeps(ImmutableList.of(key)).values()); } } |