DKO icon indicating copy to clipboard operation
DKO copied to clipboard

Add @Generated annotation to generated code

Open novalis opened this issue 8 years ago • 0 comments

Tools like https://github.com/google/error-prone use this to avoid running on generated code.

DKO's generated code fails the error-prone check because it is missing the @Override annotation for methods that override parent methods. Also, Errorprone flags some uses of == on Field objects, and maybe some other stuff.

Marking the code with javax.annotation.Generated will prevent this.

novalis avatar May 19 '17 18:05 novalis