diff options
author | Lukacs Berki <lberki@google.com> | 2015-02-18 07:11:46 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-02-18 07:11:46 +0000 |
commit | 26ebf3d2edb1bb2d8ad55da5dc47e23e1db817cf (patch) | |
tree | 6d6e862f177e5556850396991c68a944efa31f03 /src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java | |
parent | 20c9cde27dfb4b75c206f302022a3f7a48a85cbb (diff) |
Update the .equals() and .hashCode() methods of TopLevelArtifactContext with the new buildDefaultArtifacts field.
--
MOS_MIGRATED_REVID=86564229
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java b/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java index 6f8c6dba95..85cd1a15f4 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java @@ -34,7 +34,7 @@ public final class TopLevelArtifactContext { private final String buildCommand; private final boolean compileOnly; private final boolean compilationPrerequisitesOnly; - private final boolean filesToRun; + private final boolean buildDefaultArtifacts; private final boolean runTestsExclusively; private final ImmutableSet<String> outputGroups; private final boolean shouldRunTests; @@ -45,7 +45,7 @@ public final class TopLevelArtifactContext { this.buildCommand = buildCommand; this.compileOnly = compileOnly; this.compilationPrerequisitesOnly = compilationPrerequisitesOnly; - this.filesToRun = filesToRun; + this.buildDefaultArtifacts = filesToRun; this.runTestsExclusively = runTestsExclusively; this.outputGroups = outputGroups; this.shouldRunTests = shouldRunTests; @@ -68,7 +68,7 @@ public final class TopLevelArtifactContext { /** Returns the value of the (undocumented) --build_default_artifacts flag. */ public boolean buildDefaultArtifacts() { - return filesToRun; + return buildDefaultArtifacts; } /** Whether to run tests in exclusive mode. */ @@ -95,6 +95,7 @@ public final class TopLevelArtifactContext { return buildCommand.equals(otherContext.buildCommand) && compileOnly == otherContext.compileOnly && compilationPrerequisitesOnly == otherContext.compilationPrerequisitesOnly + && buildDefaultArtifacts == otherContext.buildDefaultArtifacts && runTestsExclusively == otherContext.runTestsExclusively && outputGroups.equals(otherContext.outputGroups) && shouldRunTests == otherContext.shouldRunTests; @@ -106,6 +107,6 @@ public final class TopLevelArtifactContext { @Override public int hashCode() { return Objects.hash(buildCommand, compileOnly, compilationPrerequisitesOnly, - runTestsExclusively, outputGroups, shouldRunTests); + buildDefaultArtifacts, runTestsExclusively, outputGroups, shouldRunTests); } } |