Code Monkey home page Code Monkey logo

Comments (5)

odrotbohm avatar odrotbohm commented on August 12, 2024 1

This should be all in place now.

from spring-data-commons.

christophstrobl avatar christophstrobl commented on August 12, 2024

Thank you @dodgex for raising the issue. Let me take this to the team.

from spring-data-commons.

odrotbohm avatar odrotbohm commented on August 12, 2024

Thanks for bringing this up. I've introduced a cache for the query methods and the information calculated in RepositoryInformation. Would you mind giving the latest snapshots a spin? If those look good, I'd back-port the fix back into the maintenance branches.

from spring-data-commons.

dodgex avatar dodgex commented on August 12, 2024

@odrotbohm I gave your changes a quick try. The application started as "quickly" as with my hacky solution, and as far as I tested everything worked!

And as expected your implementation is a bit cleaner than mine. ;)

I found that your polishing commit got a typo in interfacse.
Also I'm curious if it is intended to have the calculateQueryMethods and calculateHasCustomMethod methods private final instead of just private. And the queryMethods field is Lazy<> while the other two are Supplier<> although all three of them come from Lazy.of().

Thanks for the quick fix.

from spring-data-commons.

odrotbohm avatar odrotbohm commented on August 12, 2024

Great feedback, thanks! We tend to use private final for methods being invoked from constructors, but it's a cosmetical change. You're right that we can switch the field declaration to a Supplier as we don't need any Lazy-specific methods here.

I'll apply those fixes and backport the changes.

from spring-data-commons.

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.