diff options
author | Michael Wright <michaelwr@google.com> | 2016-05-06 17:16:06 +0100 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2016-05-09 14:51:41 +0100 |
commit | feaf99fa1b7563f15dbd4211718a6cfb7a3cc3c8 (patch) | |
tree | ea11ecd04a1908a46e0039a154f21a84453229b0 /tools/aapt/Resource.cpp | |
parent | 6f9f75e1063d282c933ede862fa7ea9371a2f310 (diff) |
Stop emitting javadoc for @removed attributes.
We need the attributes to remain public because people might still be
linking against them, but we don't want them showing up in the
documentation any more. Them showing up in the documentation also had
the side effect that it would accidentally mark the parent class of
attributes as @removed, which was not intended.
Bug: 28663748
Change-Id: I2f6eb09455fddf1086e6b24bc3bea5292e8e32b7
Diffstat (limited to 'tools/aapt/Resource.cpp')
-rw-r--r-- | tools/aapt/Resource.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp index 8e7045bd07e1..e6407332bb90 100644 --- a/tools/aapt/Resource.cpp +++ b/tools/aapt/Resource.cpp @@ -2255,6 +2255,9 @@ static status_t writeLayoutClasses( if (comment.size() <= 0) { comment = getAttributeComment(assets, name8); } + if (comment.contains(u"@removed")) { + continue; + } if (comment.size() > 0) { const char16_t* p = comment.string(); while (*p != 0 && *p != '.') { |