Code Monkey home page Code Monkey logo

Comments (5)

ikhoon avatar ikhoon commented on May 20, 2024 1

Good question.

com.google.common.collect.ImmutableList.Builder in guava is used as public method parameter in

Though they have public visibility, classes under internal packages are internal classes.

* Various classes used internally. Anything in this package can be changed or removed at any time.

In addition to Bouncycastle, we also shadow Guava dependency. If it is exposed in the public API, we should fix it instead of making it api.

armeria/dependencies.toml

Lines 524 to 525 in a13d582

relocations = [
{ from = "com.google.common", to = "com.linecorp.armeria.internal.shaded.guava" },

from armeria.

HappyHacker123 avatar HappyHacker123 commented on May 20, 2024

Could you help me review this issue @ikhoon @minwoox ? Many thanks :)

from armeria.

ikhoon avatar ikhoon commented on May 20, 2024

Class io.netty.channel.unix.DomainSocketAddress is used as public method parameter in core/src/main/java/com/linecorp/armeria/common/util/DomainSocketAddress.java

Good point. We need to fix it.

Class AsymmetricKeyInfoConverter is used as public method parameter in core/src/main/java/com/linecorp/armeria/internal/common/util/MinifiedBouncyCastleProvider.java

bouncycastle is shaded so it is not part of transitive dependencies and can't be api.
We may remove ConfigurableProvider from the super class or move MinifiedBouncyCastleProvider to internal.

Class ForwardingSet is extended in core/src/main/java/com/linecorp/armeria/common/DefaultCookies.java

DefaultCookies is a package private class so ForwardingSet doesn't have to be api.

from armeria.

HappyHacker123 avatar HappyHacker123 commented on May 20, 2024

@ikhoon Thanks a lot for your prompt response and clarification!

DefaultCookies is a package private class so ForwardingSet doesn't have to be api.

You're right, I'm sorry to give a wrong example. But here's another example regarding exposed classses in guava. Could you please take a look?

  • com.google.common.collect.ImmutableList.Builder in guava is used as public method parameter in core/src/main/java/com/linecorp/armeria/internal/common/metric/DefaultMeterIdPrefixFunction.java

Acually we found another dependency com.github.ben-manes.caffeine:caffeine whose scope may also need to be set to api due to the following usage.

  • com.github.benmanes.caffeine.cache.Cache in caffeine is used as public parameter in core/src/main/java/com/linecorp/armeria/internal/common/metric/CaffeineMetricSupport.java

from armeria.

HappyHacker123 avatar HappyHacker123 commented on May 20, 2024

@ikhoon Thank you for your response :). I now have a thorough understanding of the situation, and the problem should be fixed according to armeria's actual implementation. Hope to hear it fixed soon :).

from armeria.

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.