OSDN Git Service

Cherry-pick from master: AAPT2: Fix JavaDoc first sentence extraction.
authorAdam Lesinski <adamlesinski@google.com>
Tue, 25 Jul 2017 01:19:36 +0000 (18:19 -0700)
committerAndrew Solovay <asolovay@google.com>
Fri, 28 Jul 2017 00:22:09 +0000 (17:22 -0700)
commit18dc03a9fd87b544eef9ef701f676a7c5306594c
tree643a4edae66997f2f3e7d554f205bb6db26eb07b
parent7ceb8eff19f8f01f5a6fa1d1a6fe8f094d42d9da
Cherry-pick from master: AAPT2: Fix JavaDoc first sentence extraction.

The old algorithm for detecting the first sentence of a JavaDoc comment
looked for the first occurence of '.'. This does not work when code or a
{@link android.R.styleable} link is encountered in the first sentence.

Switch to checking for whitespace characters after the '.' character.

Bug: 62900335
Test: make aapt2_tests , make ds-docs
Original change-Id: I8238f6a6304c9c2f92e2e576ca8962a59c2b20ea

Change-Id: Ie272d0d793d157f2a30f3ead20b2b53976661d33
tools/aapt2/java/AnnotationProcessor.cpp
tools/aapt2/java/AnnotationProcessor.h
tools/aapt2/java/AnnotationProcessor_test.cpp
tools/aapt2/java/JavaClassGenerator.cpp
tools/aapt2/text/Unicode.cpp
tools/aapt2/text/Unicode.h
tools/aapt2/text/Utf8Iterator.cpp
tools/aapt2/text/Utf8Iterator.h
tools/aapt2/text/Utf8Iterator_test.cpp
tools/aapt2/tools/extract_unicode_properties.py