Commit e36d22f
⚡ Bolt: [performance improvement] Replace Regex prefix/suffix matching with String startsWith/endsWith & Increase SWTBot Timeout
Replaced replaceFirst with regex patterns with startsWith(), endsWith(), and substring() across ClassNameEvaluation.java and BaseTools.java. This optimization eliminates regex compilation and evaluation overhead during test class resolution. Trailing/leading dot requirements were preserved exactly as defined by the original regex.
Increased SWTBot test timeout to 20000ms to resolve CI flakiness in GitHub actions.
Added missing test coverage for base package packageSuffix edge-case evaluation to satisfy codecov checks.
Added bot.sleep to RenameMethodTest to prevent race condition between UI shell closure and Java Model background refactoring updates.
Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>1 parent 41ed8d8 commit e36d22f
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
0 commit comments