From da6bbce1ee317f3b4d7ca245058049ab2a032848 Mon Sep 17 00:00:00 2001 From: corysmith Date: Mon, 15 May 2017 16:56:01 +0200 Subject: Further Refactoring/Yak Shaving * Extract the FieldInitializer with placeholder ids from the AndroidResourceClassWriter * Extract a resource sink interface from the AndroidResourceClassWriter (a little renaming, the change isn't actually that big.) RELNOTES: None PiperOrigin-RevId: 156053478 --- .../com/google/devtools/build/android/XmlResourceValue.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java') diff --git a/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java b/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java index bcbf99acca..0c0edd92a5 100644 --- a/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java +++ b/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java @@ -43,16 +43,13 @@ public interface XmlResourceValue { XmlResourceValue combineWith(XmlResourceValue value); /** - * Queue up writing the resource to the given {@link AndroidResourceClassWriter}. - * Each resource can generate one or more (in the case of styleable) fields and inner classes - * in the R class. + * Queue up writing the resource to the given {@link AndroidResourceClassWriter}. Each resource + * can generate one or more (in the case of styleable) fields and inner classes in the R class. * * @param key The FullyQualifiedName of the resource - * @param resourceClassWriter the R java class writer + * @param sink the symbol sink for producing source and classes */ - void writeResourceToClass( - FullyQualifiedName key, - AndroidResourceClassWriter resourceClassWriter); + void writeResourceToClass(FullyQualifiedName key, AndroidResourceSymbolSink sink); /** Returns a representation of the xml value as a string suitable for conflict messages. */ String asConflictStringWith(DataSource source); -- cgit v1.2.3