Files
build/tools
Mårten Kongstad 02525a88de check-flagged-apis: api-versions.xml: correctly parse nested class ctor
The constructor of a nested class is represented as follows in
api-versions.xml:

  <class name="android/Clazz$Foo$Bar" since="1">
    <method name="&lt;init>()V"/>
  </class>

The nested dollar signs are not replaced by forward slashes before the
parsing logic uses `split("/")` to find the name of the inner-most
class, incorrectly resulting in `Class$Foo$Bar` instead of `Bar`. Fix
this by immediately replacing dollar signs with forward slashes after
extracting the package and class.

Also clean up the following call of `Symbol.create`.

Bug: 334870672
Test: atest --host check-flagged-apis-test
Change-Id: I8c0619faae90ded7eb14dcc20ecb94a086a1c764
2024-05-07 13:16:13 +02:00
..
2022-01-24 16:19:41 -08:00
2022-12-20 16:51:53 -08:00
2022-08-01 14:45:28 -07:00
2023-12-14 15:37:35 +00:00
2022-01-24 16:19:41 -08:00
2024-03-04 21:20:52 +00:00
2022-01-24 16:19:41 -08:00
2022-06-28 11:23:21 -07:00
2023-10-23 13:41:07 +00:00
2024-04-24 21:23:58 +00:00