Penstock

Guide / Every rule

A job worker takes its job type from the method name

The check code/implicit-job-type, in the group Diagrams and code.

AdvicePro

Why it matters

A @JobWorker without a type answers to its method name, so renaming the method changes the contract with the diagram without anything saying so.

How to fix it

Name the type in the annotation, so the method can be renamed freely.

Where you see it

The Problems tab lists it under Code. In a terminal, penstock code reports it with the file and line. This check is part of Penstock Pro, and Team in a pipeline.

Rule details

Idcode/implicit-job-type
GroupDiagrams and code
LevelAdvice: it works, and reads or runs better without it

Read more: Code links. All rules: Every rule.