Giter Site home page Giter Site logo

Jakarta Generated support about lombok HOT 3 OPEN

KyRobbins avatar KyRobbins commented on August 15, 2024
Jakarta Generated support

from lombok.

Comments (3)

KyRobbins avatar KyRobbins commented on August 15, 2024

Following up with my above question, I'm wondering if it would be feasible to have a

lombok.addCustomGeneratedAnnotation = com.example.Generated

There could even either be a configuration or a standard for annotation properties, so either:

lombok.addCustomGeneratedAnnotationSource = true

Or just make it a standard that the annotation takes one literal string parameter to define the source of the generated code.
This would easily allow people to inject any annotation they want to use.

from lombok.

Rawi01 avatar Rawi01 commented on August 15, 2024

You are right that this doesn't change anything for JaCoCo but there are other tools that work on source level and use the delombok output. If you want to exclude your code from JaCoCo you can add lombok.addLombokGeneratedAnnotation = true to your config file or update to the edge release.

from lombok.

KyRobbins avatar KyRobbins commented on August 15, 2024

Admittedly I'm not familiar with the other use cases this may satisfy. For the case of JaCoCo, however, I'd be curious about my suggestion to add the ability to define our own annotation to use. I think this could be a relatively simple addition, and don't mind creating a PR for it if deemed of interest.

from lombok.

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.