diff options
author | Googler <noreply@google.com> | 2016-10-25 15:25:09 +0000 |
---|---|---|
committer | John Cater <jcater@google.com> | 2016-10-25 20:19:14 +0000 |
commit | 7260f0a2c69bfe0fec187099fcea2dd16c331729 (patch) | |
tree | bab73491fda9476815de0aa1ff80a591041306b9 /src/tools/android/java/com/google/devtools/build/android/AndroidDataSerializer.java | |
parent | d1f4a167f8080d460dd532eb83b87ab0d0eb4f86 (diff) |
Wrap the source Path in a DataSource object.
The DataSource object will then be used to track which values have been
overwritten and avoid incorrect merge warnings.
--
MOS_MIGRATED_REVID=137159260
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/AndroidDataSerializer.java')
-rw-r--r-- | src/tools/android/java/com/google/devtools/build/android/AndroidDataSerializer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/AndroidDataSerializer.java b/src/tools/android/java/com/google/devtools/build/android/AndroidDataSerializer.java index bf6d52dd1c..132133facd 100644 --- a/src/tools/android/java/com/google/devtools/build/android/AndroidDataSerializer.java +++ b/src/tools/android/java/com/google/devtools/build/android/AndroidDataSerializer.java @@ -173,7 +173,7 @@ public class AndroidDataSerializer { // TODO(corysmith): Make this a lazy read of the values. for (Entry<DataKey, KeyValueConsumer<DataKey, ?>> entry : keys.entrySet()) { SerializeFormat.DataValue protoValue = SerializeFormat.DataValue.parseDelimitedFrom(in); - Path source = sourceTable.sourceFromId(protoValue.getSourceId()); + DataSource source = sourceTable.sourceFromId(protoValue.getSourceId()); if (protoValue.hasXmlValue()) { // TODO(corysmith): Figure out why the generics are wrong. // If I use Map<DataKey, KeyValueConsumer<DataKey, ? extends DataValue>>, I can put @@ -189,7 +189,7 @@ public class AndroidDataSerializer { @SuppressWarnings("unchecked") KeyValueConsumer<DataKey, DataValue> value = (KeyValueConsumer<DataKey, DataValue>) entry.getValue(); - value.consume(entry.getKey(), DataValueFile.from(source)); + value.consume(entry.getKey(), DataValueFile.of(source)); } } } |