-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add emptyArray and newArray to KiwiReflection2 (#276)
These methods allow you to easily create an array of a given type without needing to cast. One creates an empty array while the other creates an array with a given length, and which contains only null values. The javadocs and initial version of the tests were "written" by ChatGPT. I modified them slightly, and added a few more tests. For example, a ValueSource can be used instead of a MethodSource when there is only one test parameter. I also had to slightly correct the text in the throws explanations in the javadoc, plus I added additional text including the "see" references and the implNote text.
- Loading branch information
1 parent
932aac4
commit 626c9c9
Showing
2 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters