forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get ActionAnalysisMetadata in a simpler, more efficient manner.
Instead of checking whether it's an action or a template and calling the corresponding method, when it can be either, simply bypass checks and get it directly from the list. The actions list itself used to not be exposed, so isActionTemplate was necessary to determine which method to call (getAction or getActionTemplate). Also prevent boxing of ints in the Preconditions calls. PiperOrigin-RevId: 261174117
- Loading branch information
1 parent
90a55a9
commit 2714b88
Showing
4 changed files
with
14 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters