INRIA / spoon

Spoon is a metaprogramming library to analyze and transform Java source code. :spoon: is made with :heart:, :beers: and :sparkles:. It parses source files to build a well-designed AST with powerful analysis and transformation API.
http://spoon.gforge.inria.fr/
Other
1.76k stars 352 forks source link

Spelling mistake in AnnotationProcessor API #5934

Closed PinkMoustacheMan closed 2 months ago

PinkMoustacheMan commented 3 months ago

In the AnnotationProcessor class, the "shoudBeConsumed" method is misspelled and should be called "shouldBeConsumed".

This change has an effect on the AbstractAnnotationProcessor as well as all projects using this API.

The spelling is also incorrect for the "shoudBeProcessed" method in the AbstractAnnotationProcessor but due to it being private, this should have a smaller impact.

monperrus commented 3 months ago

Thanks for the bug report @PinkMoustacheMan .

I suggest to add a new method with correct spelling, and keep the previous one for backward compatibility @Deprecated

A pull-request is welcome!