Skip to content

Add remaining flow methods#85

Merged
adamw merged 3 commits intomainfrom
add-remaining-flow-methods
Jan 10, 2025
Merged

Add remaining flow methods#85
adamw merged 3 commits intomainfrom
add-remaining-flow-methods

Conversation

@emil-bar
Copy link
Contributor

@emil-bar emil-bar commented Jan 8, 2025

Closes #84

@emil-bar emil-bar force-pushed the add-remaining-flow-methods branch from fde5e59 to d8455b8 Compare January 9, 2025 07:39
@emil-bar emil-bar force-pushed the add-remaining-flow-methods branch from d8455b8 to 6695b7e Compare January 9, 2025 16:56
@emil-bar emil-bar marked this pull request as ready for review January 10, 2025 08:22
@emil-bar emil-bar force-pushed the add-remaining-flow-methods branch from 6695b7e to a2fcac9 Compare January 10, 2025 08:25
}

@SafeVarargs
public final T flatten(T... args) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd add a comment here (apart from usual docs, which seem to be missing?), as to what's the purpose of the T... args - that it's just a technical way of checking generic type, not something the user should provide. Also in other places where we're using it. Otherwise people might get easily confused.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, my bad I've missed the docs.
Added them now, with explanation that T... args is used only to verify type.
In getTClass function we also throw exception when array is not empty (Mockito does the same)

@adamw adamw merged commit ef1702e into main Jan 10, 2025
2 checks passed
@adamw adamw deleted the add-remaining-flow-methods branch January 10, 2025 14:29
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.

Add remaing Flow methods

2 participants