Commit 585b40e
Method name parsing in
When loading external library models through the
`ExternalStubxLibraryModels` class, it previously didn't parse the
method name for methods with wildcard types properly. This PR fixes the
method parsing so that it will work for those cases.
The unit test for this is located in
`java/com/uber/nullaway/jdkannotations/JDKIntegrationTest.java` and is
`libraryLoadMethodParser()`.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added a new public API method returning a parameterized List
(annotated and unannotated variants).
* **Tests**
* Added an integration test covering library parser behavior for
return-value handling.
* **Bug Fixes**
* Improved library-model method-signature parsing and normalization to
handle irregular spacing/formatting.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Manu Sridharan <msridhar@gmail.com>ExternalStubxLibraryModels class is missing a corner case (uber#1344)1 parent feec9d9 commit 585b40e
File tree
4 files changed
+45
-8
lines changed- jdk-annotations
- jdk-integration-test/src/test/java/com/uber/nullaway/jdkannotations
- test-annotated/src/main/java/com/uber/nullaway/jdkannotations
- test-unannotated/src/main/java/com/uber/nullaway/jdkannotations
- nullaway/src/main/java/com/uber/nullaway/handlers
4 files changed
+45
-8
lines changedLines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
332 | 356 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
69 | 74 | | |
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
1441 | 1442 | | |
1442 | 1443 | | |
1443 | 1444 | | |
1444 | | - | |
1445 | | - | |
| 1445 | + | |
1446 | 1446 | | |
1447 | 1447 | | |
1448 | 1448 | | |
| |||
1463 | 1463 | | |
1464 | 1464 | | |
1465 | 1465 | | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
| 1466 | + | |
1469 | 1467 | | |
1470 | 1468 | | |
1471 | 1469 | | |
| |||
1491 | 1489 | | |
1492 | 1490 | | |
1493 | 1491 | | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
1494 | 1499 | | |
1495 | 1500 | | |
1496 | 1501 | | |
| |||
1512 | 1517 | | |
1513 | 1518 | | |
1514 | 1519 | | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
| 1520 | + | |
1518 | 1521 | | |
1519 | 1522 | | |
1520 | 1523 | | |
| |||
0 commit comments