Title: Fix unnecessary reflection calls in the generated code by sofurihafe · Pull Request #1491 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Fix unnecessary reflection calls in the generated code by sofurihafe · Pull Request #1491 · UnitTestBot/UTBotJava
X Title: Fix unnecessary reflection calls in the generated code by sofurihafe · Pull Request #1491 · UnitTestBot/UTBotJava
Description: Description This PR fixes unnecessary reflection calls as described in the following issue and infinite loop in self-reference initialization (there are examples in the manual testing section). Fixes # (1353) Type of Change Bug fix (non-breaking change which fixes an issue) How Has This Been Tested? Automated Testing UTBot-samples. Manual Scenario Tested on the code attached in the issue. Additionally, tested self-reference cases like the following: // First scenario class FirstClass { SecondClass secondClass; FirstClass(SecondClass second) { this.secondClass = second; } } class SecondClass { FirstClass firstClass; SecondClass(FirstClass first) { this.firstClass = first; } } class ClassWithCrossReferenceRelationship { public FirstClass returnFirstClass(int value) { if (value == 0) { return new FirstClass(new SecondClass(null)); } else { FirstClass first = new FirstClass(null); first.secondClass = new SecondClass(first); return first; } } } // Second scenario class FirstClass1 { ThirdClass1 thirdClass; FirstClass1(ThirdClass1 third) { this.thirdClass = third; } } class SecondClass1 { FirstClass1 firstClass; SecondClass1(FirstClass1 first) { this.firstClass = first; } } class ThirdClass1 { SecondClass1 secondClass; ThirdClass1(SecondClass1 second) { this.secondClass = second; } } class ClassWithCrossReferenceRelationship1 { public FirstClass1 returnFirstClass(int value) { FirstClass1 first = new FirstClass1(null); SecondClass1 second = new SecondClass1(first); ThirdClass1 third = new ThirdClass1(second); first.thirdClass = third; return first; } }
Open Graph Description: Description This PR fixes unnecessary reflection calls as described in the following issue and infinite loop in self-reference initialization (there are examples in the manual testing section). Fix...
X Description: Description This PR fixes unnecessary reflection calls as described in the following issue and infinite loop in self-reference initialization (there are examples in the manual testing section). Fix...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/1491
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:29b196a7-9c42-22f1-63ed-a278765e3b3e |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B65E:2884FF:74162:96DDC:69904777 |
| html-safe-nonce | b1fe7ca59b110c4bd5a0422cc1bc29b45477156eb4912de009efe991e4fa259f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjVFOjI4ODRGRjo3NDE2Mjo5NkREQzo2OTkwNDc3NyIsInZpc2l0b3JfaWQiOiI4NDEwNDI4NDcxNDQ5MjQxNDYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7e193d80ba78c5cde8601db17a7ddb36e92de3465532e83f06db8690348ebe8b |
| hovercard-subject-tag | pull_request:1152322646 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/UnitTestBot/UTBotJava/pull/1491/checks |
| twitter:image | https://avatars.githubusercontent.com/u/54685068?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/54685068?s=400&v=4 |
| og:image:alt | Description This PR fixes unnecessary reflection calls as described in the following issue and infinite loop in self-reference initialization (there are examples in the manual testing section). Fix... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width