Back to Error Prone

DoNotClaimAnnotations

docs/bugpattern/DoNotClaimAnnotations.md

2.49.0608 B
Original Source

Do not 'claim' annotations in annotation processors; Processor#process should unconditionally return false. Claiming annotations prevents other processors from seeing the annotations, which there's usually no reason to do. It's also fragile, since it relies on the order the processors run in, and there's no robust way in most build systems to ensure a particular processor sees the annotations first.