Git Product home page Git Product logo

Comments (5)

siom79 avatar siom79 commented on June 2, 2024

You can filter for annotations with the following configuration (see here):

<includes>
    <include>@my.AnnotationToInclude</include>
</includes>

Filtering for values of elements of an annotation like state in your example is currently not possible.
Do you need it?

from japicmp.

vajnaivik avatar vajnaivik commented on June 2, 2024

Thank you for the quick reply!
I found the annotation option, sorry for not clarifying that.

It would be a great convenience, the team I work with would probably start using the tool in that case.

By the way, I managed to filter out classes using the annotation with a groovy script, but japicmp.model.JApiMethod doesn't seem to include information about method annotations, so there is a half-way workaround at least.

from japicmp.

siom79 avatar siom79 commented on June 2, 2024

Have you seen the attribute annotations of JApiMethod (see here)?

from japicmp.

vajnaivik avatar vajnaivik commented on June 2, 2024

aww shucks
I didn't notice that at all!
Than the workaround should be possible.
I still don't know if the feature would be worth your time, but you can probably estimate that better.
Thanks for the help!

from japicmp.

reckart avatar reckart commented on June 2, 2024

Filtering for values of elements of an annotation like state in your example is currently not possible.
Do you need it?

Being able to filter out not only by annotation but also by attribute value would be great. It would make japicmp compatible with the ApiGuardian annotations which are used by a bunch of major OSS packages (e.g. JUnit 5 which is where I stumbled across them).

@API(status = Status.STABLE)
@API(status = Status.EXPERIMENTAL)
@API(status = Status.INTERNAL)
...

from japicmp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.