aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/skyframe/KeyToConsolidate.java
diff options
context:
space:
mode:
authorGravatar tomlu <tomlu@google.com>2017-12-22 00:56:58 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-22 00:58:31 -0800
commite63a867feb2483851b5169894ff7b3c0bdb26581 (patch)
tree68306264ab9dc8f2383f987a42fb768b2d6436a8 /src/main/java/com/google/devtools/build/skyframe/KeyToConsolidate.java
parent85e8d51c72c5dcb4d1f6a8f3186149339ca59fac (diff)
Redo FileType to reduce generated garbage.
* Change FileType to no longer assume it operates on just the base name (it can now be given a full path). * Move the responsibility to specific classes (Artifact, Path, PathFragment) to decide how they want to offer up a string that includes the file name. * Flip the order in which users are expected to check Artifact type, from FileType#matches(Artifact) to Artifact#isFileType(FileType). This looks natural and should encourage developers to use efficient file type checking methods. * Change CppCompileAction to use the new API. RELNOTES: None PiperOrigin-RevId: 179903239
Diffstat (limited to 'src/main/java/com/google/devtools/build/skyframe/KeyToConsolidate.java')
0 files changed, 0 insertions, 0 deletions