Comments (5)
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.
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.
Have you seen the attribute annotations
of JApiMethod (see here)?
from japicmp.
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.
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)
- CLASS_GENERIC_TEMPLATE_CHANGED on new class
- include/exclude packages without subpackages HOT 1
- java.lang.IllegalStateException: value is absent.
- Add new compatibility check METHOD_MOVED_TO_SUPERCLASS HOT 1
- CLI tool to skip checking deprecated methods
- Report doesn't show the jar it is under HOT 1
- Changes report includes unchanged properties, e.g. class file format
- Exclude unchanged classes and methods from HTML report HOT 4
- >=0.16.0: Cannot compare versions because the number of old versions is different than the number of new versions HOT 4
- Move of method to superclass with generics METHOD_REMOVED HOT 1
- New default method detected as METHOD_NEW_DEFAULT when BinaryIncompatible disabled and SourceIncompatible enabled HOT 1
- htmlTitle not actually added to html file HOT 2
- Changing default method to static should be separate case HOT 5
- Switch to Apache Groovy HOT 1
- False positive when making a package-private class public that already has a public static method's different return type HOT 5
- Maven plugin does not obey property japicmp.skip when generating reports. HOT 2
- False positive when on a final class protected method made into private HOT 1
- Regression CLASS_GENERIC_TEMPLATE_CHANGED HOT 2
- Questions about the mechanism of binary compatibility checks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from japicmp.