Skip to content

Create NullOperation #79

@nkinesis

Description

@nkinesis
  • 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

Metadata

Metadata

Assignees

Labels

maintenanceCode quality enhancements

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions