diff options
author | 2015-10-23 20:29:41 +0000 | |
---|---|---|
committer | 2015-10-27 11:45:18 +0000 | |
commit | 3d68e09556f848f1b75d9ce44b72ca297698cb8c (patch) | |
tree | 32f2c1feb357faebebc359d7d04e345f41b087d3 /src | |
parent | 724fd636d43a7d504259e9c93e4e3441486aa6f0 (diff) |
Keep the bytes of the hashcode instead of the hashcode object.
--
MOS_MIGRATED_REVID=106174495
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/packages/PackageDeserializer.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/packages/PackageDeserializer.java b/src/main/java/com/google/devtools/build/lib/packages/PackageDeserializer.java index 302240f74d..de36382811 100644 --- a/src/main/java/com/google/devtools/build/lib/packages/PackageDeserializer.java +++ b/src/main/java/com/google/devtools/build/lib/packages/PackageDeserializer.java @@ -23,7 +23,6 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.Interner; import com.google.common.collect.Interners; import com.google.common.collect.Sets; -import com.google.common.hash.HashCode; import com.google.common.hash.Hasher; import com.google.common.hash.Hashing; import com.google.devtools.build.lib.cmdline.Label; @@ -203,7 +202,7 @@ public class PackageDeserializer { } } AttributeContainerWithoutLocation attributeContainer = - new AttributeContainerWithoutLocation(ruleClass, hasher.hash()); + new AttributeContainerWithoutLocation(ruleClass, hasher.hash().asBytes()); Label ruleLabel = deserializeLabel(rulePb.getName()); try { @@ -673,10 +672,10 @@ public class PackageDeserializer { public static class AttributeContainerWithoutLocation extends AttributeContainer { @Nullable - private final HashCode syntheticAttrHash; + private final byte[] syntheticAttrHash; private AttributeContainerWithoutLocation(RuleClass ruleClass, - @Nullable HashCode syntheticAttrHash) { + @Nullable byte[] syntheticAttrHash) { super(ruleClass, null); this.syntheticAttrHash = syntheticAttrHash; } @@ -696,9 +695,8 @@ public class PackageDeserializer { throw new UnsupportedOperationException("Setting location not supported"); } - @Nullable - public HashCode getSyntheticAttrHash() { + public byte[] getSyntheticAttrHash() { return syntheticAttrHash; } |