Commit 62a7aba
authored
fix(java): simplify NodeID name to methodName(paramTypes) (#189)
* fix(java): simplify NodeID name to methodName(paramTypes)
Java method NodeIDs were using the JAR-provided Descriptor/RawText
directly, which often included modifiers, return type, throws clause,
parameter names and annotations. Rebuild the name from MethodDetail's
parameter list (TypeRawText, falling back to TypeFqcn) so NodeIDs are
stable and concise — e.g. queryJwtToken(String,String,String).
* fix(java): strip modifiers/return type from method NodeID
GetName() only splits Descriptor at '(' so when the JAR returns the
long form (e.g. "abstract void foo()"), modifiers and return type
leaked into the NodeID name. Take the last whitespace-delimited token
after GetName(), and drop empty parens for no-arg methods so the
exported "Class.method" form stays clean.1 parent b6f1fb5 commit 62a7aba
1 file changed
Lines changed: 40 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
| 833 | + | |
837 | 834 | | |
838 | 835 | | |
839 | 836 | | |
| |||
2524 | 2521 | | |
2525 | 2522 | | |
2526 | 2523 | | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
2527 | 2563 | | |
2528 | 2564 | | |
2529 | 2565 | | |
| |||
0 commit comments