Skip to content

Fix critical bugs + rewrite JavaDoc#10

Merged
runafterasun merged 1 commit intorunafterasun:masterfrom
EgorLq:fix/bugfixes-and-javadoc
Feb 24, 2026
Merged

Fix critical bugs + rewrite JavaDoc#10
runafterasun merged 1 commit intorunafterasun:masterfrom
EgorLq:fix/bugfixes-and-javadoc

Conversation

@EgorLq
Copy link
Contributor

@EgorLq EgorLq commented Feb 23, 2026

Summary

  • Fix inverted isAssignableFrom check in RandomValue.fillCollection() and RandomValue.fillStream() — elements were dropped when wrapByFunction returned a subtype
  • Fix valueLength fallback in RandomValueFieldSetterCallback — was incorrectly falling back to collectionSize instead of valueLength
  • Rewrite JavaDoc across all source files (excluding utils/reflection/) — fix blank lines, copy-paste errors, unclear descriptions, and missing class-level documentation

Test plan

  • Run ./gradlew test — all existing tests should pass
  • Verify fillCollection and fillStream work correctly with subtype mutations via wrapByFunction
  • Run ./gradlew javadoc — verify no warnings

…JavaDoc

- Fix fillCollection/fillStream: change o.getClass().isAssignableFrom(fill.getClazz())
  to fill.getClazz().isAssignableFrom(o.getClass()) so subtype elements are not silently dropped
- Fix getExtendedParameterForField: valueLength fallback now uses fill.getValueLength()
  instead of fill.getCollectionSize()
- Rewrite JavaDoc across all core, service, type, and utility classes:
  remove blank lines in doc blocks, fix vague descriptions ("split field fill",
  "start builder with name"), add missing @param/@return tags, fix copy-paste errors
@runafterasun runafterasun merged commit 4386ff3 into runafterasun:master Feb 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants