Sitelet https://github.com/usb4java/usb4java/issues/87
Skip to content

Why use apache.commons.lang for only two methods #87

Description

@Schnippsche

It sucks when including a 500kb jar for using only two methods (EqualsBuilder and HashCodeBuilder) of the library.

Please remove the commons.lang jar and use alternative java code instead.

Thanks

Activity

  1. vxel commented on Oct 20, 2025

    @vxel

    You forgot the ImmutablePair class and all the apache commons classes that are required by those 3 classes.
    The implementation of EqualsBuilder, HashCodeBuilder and ImmutablePair classes are not replaceable without taking a huge risk of breaking change.
    If you get all the dependent classes, you will end up with more than 30 classes copied from commons lang.
    I guess we do not want this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions