-
Notifications
You must be signed in to change notification settings - Fork 2
Create NullOperation #79
Copy link
Copy link
Open
Labels
maintenanceCode quality enhancementsCode quality enhancements
Description
nkinesis
opened on Mar 7, 2025
Issue body actions
- From now on the assumption is that every Producer, when it is instantiated, has a NullOperation by default
- If it needs a subsequent operation, it will receive one (given by the runner)
- Otherwise, the NullOp will remain, will do nothing and then notify observers
- Benefit of doing so: less probability of null pointer exceptions, no need for null checks
- Also: Use Optional instead of returning (and testing!) for null: java.util.Optional
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
maintenanceCode quality enhancementsCode quality enhancements