summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/AnnotationProcessor.h
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2016-03-31 13:33:02 -0700
committerAdam Lesinski <adamlesinski@google.com>2016-03-31 16:43:04 -0700
commit6cbfb1de493e42d937158ed57495c9656864ccba (patch)
treecfc5c985a647ba2282904b028e20409d45b43635 /tools/aapt2/java/AnnotationProcessor.h
parentbecc30196dbd6ebe68726c984a448c90fa6ef167 (diff)
AAPT2: Change how we generate Java classes
Previously we would be writing out the Manifest.java file as we processed the AndroidManifest.xml. This would lead to empty Manifest classes if there were no permissions or permission groups defined in the AndroidManifest.xml. This would pose problems for processes that checked for public classes and considered them part of the API (support lib). Now we collect the structure of the Java class in memory before deciding if a file should be created. Change-Id: I6b909f28d74356414c6ef5ad005180d6ea5e44ca
Diffstat (limited to 'tools/aapt2/java/AnnotationProcessor.h')
-rw-r--r--tools/aapt2/java/AnnotationProcessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt2/java/AnnotationProcessor.h b/tools/aapt2/java/AnnotationProcessor.h
index fadf58440991..0fc5b08e0bf3 100644
--- a/tools/aapt2/java/AnnotationProcessor.h
+++ b/tools/aapt2/java/AnnotationProcessor.h
@@ -66,7 +66,7 @@ public:
/**
* Writes the comments and annotations to the stream, with the given prefix before each line.
*/
- void writeToStream(std::ostream* out, const StringPiece& prefix);
+ void writeToStream(std::ostream* out, const StringPiece& prefix) const;
private:
enum : uint32_t {