Skip to content

Refactored FuncDSL by renaming clazz to inputClass #1208

Merged
fjtirado merged 2 commits intoserverlessworkflow:mainfrom
amineis:refactored-func-dsl
Mar 6, 2026
Merged

Refactored FuncDSL by renaming clazz to inputClass #1208
fjtirado merged 2 commits intoserverlessworkflow:mainfrom
amineis:refactored-func-dsl

Conversation

@amineis
Copy link
Contributor

@amineis amineis commented Mar 6, 2026

Fixes #1199

Summary

Renamed the clazz parameter to inputClass in FuncDSL to improve clarity and make the semantics of inputFrom and outputAs easier to understand.

Changes

  • Renamed clazz parameter to inputClass in FuncDSL

Checklist

  • mvn -DskipTests spotless:check checkstyle:check passes locally
  • Unit/integration tests updated
  • Public API changes documented/Javadoc updated
  • No unrelated formatting churn

Note: The API module still has a test failure. This PR does not change the API module; that issue is separate.

@amineis amineis requested a review from fjtirado as a code owner March 6, 2026 00:09
Copilot AI review requested due to automatic review settings March 6, 2026 00:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the fluent function DSL API to use a clearer parameter name (inputClass) instead of clazz for Class<T> type-hint parameters, improving readability for callers and generated documentation.

Changes:

  • Renamed clazzinputClass across multiple FuncDSL helper methods and their Javadocs.
  • Updated local variable names where input type is inferred to match the new terminology.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@mcruzdev mcruzdev left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks a lot for this pull request!

@mcruzdev
Copy link
Collaborator

mcruzdev commented Mar 6, 2026

@amineis you need to sign your commit

amineis added 2 commits March 6, 2026 16:30
Signed-off-by: amineis <amineidrissis12@gmail.com>
Signed-off-by: amineis <amineidrissis12@gmail.com>
@amineis amineis force-pushed the refactored-func-dsl branch from 16efc6b to d7e27e3 Compare March 6, 2026 16:32
@amineis
Copy link
Contributor Author

amineis commented Mar 6, 2026

Done!

@fjtirado fjtirado merged commit 9c56c07 into serverlessworkflow:main Mar 6, 2026
3 checks 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.

Rename parameters name to facilitate the understanding of the inputFrom and outputAs

4 participants