yandex-qatools / hamcrest-pojo-matcher-generator

Autogenerated java hamcrest matchers for pojo with help of AnnotationProcessor
Apache License 2.0
33 stars 8 forks source link

Do not process constants #18

Open maxdobler opened 8 years ago

maxdobler commented 8 years ago

Hi,

I have a bean which has a private static final constant. The @GenerateMatcher annotation tries to generate a Matcher for this constant... Is it possible to exclude static final fields from processing?

Greetings, Max

lanwen commented 8 years ago

You can unmark class and use annotation directly on the fields you need

pkokoshnikov commented 8 years ago

I think it no so comfortably to use fields GenerateMatcher. What i have 10 fields and one constant. Besides for ex, selenium pojo is already annotated by annotations. And it looks cumbersome

lanwen commented 7 years ago

Note for myself:

we can also just ignore fields without getters