aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/android/java/com/google/devtools/build/android/FullyQualifiedName.java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-06-28 22:24:56 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-06-29 08:56:18 +0000
commitd9bf45b0ed79aa0a02edccaa5f0b2dab33f25ddc (patch)
treecc9472a06317c3abd5c256560968d60ae70fbba6 /src/tools/android/java/com/google/devtools/build/android/FullyQualifiedName.java
parent242ff7fcf34ec05785725e3f441beae320b64688 (diff)
Record whether the attr is defined or referenced in the styleable. Despite the functional equality, the definition type of the attribute has direct impact on the order in which the attribute appears in the styleable array.
-- MOS_MIGRATED_REVID=126126122
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/FullyQualifiedName.java')
-rw-r--r--src/tools/android/java/com/google/devtools/build/android/FullyQualifiedName.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/FullyQualifiedName.java b/src/tools/android/java/com/google/devtools/build/android/FullyQualifiedName.java
index d554861e3f..eeebbbcfab 100644
--- a/src/tools/android/java/com/google/devtools/build/android/FullyQualifiedName.java
+++ b/src/tools/android/java/com/google/devtools/build/android/FullyQualifiedName.java
@@ -422,13 +422,14 @@ public class FullyQualifiedName implements DataKey, Comparable<FullyQualifiedNam
@Override
public void serializeTo(OutputStream out, int valueSize) throws IOException {
- SerializeFormat.DataKey.newBuilder()
+ toSerializedBuilder().setValueSize(valueSize).build().writeDelimitedTo(out);
+ }
+
+ public SerializeFormat.DataKey.Builder toSerializedBuilder() {
+ return SerializeFormat.DataKey.newBuilder()
.setKeyPackage(pkg)
- .setValueSize(valueSize)
.setResourceType(resourceType.getName().toUpperCase())
.addAllQualifiers(qualifiers)
- .setKeyValue(resourceName)
- .build()
- .writeDelimitedTo(out);
+ .setKeyValue(resourceName);
}
}