Skip to content

protectBranch use Integer for userId but the Class AbstractUser use Long for Id #874

Open
@rfrebyLF

Description

@rfrebyLF

Hello,

After updating to the latest version of the API, we ran into an issue of using the method ProtectBranch. We use it with a getId() of a User in our tests.

The ID used in the Class AbstractUser is now a Long, but the definition of the method protectBranch of ProtectedBranchApi use an Integer:
https://javadoc.io/static/org.gitlab4j/gitlab4j-api/5.0.1/org/gitlab4j/api/ProtectedBranchesApi.html#protectBranch(java.lang.Object,java.lang.String,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Boolean)

Is this just something that didn't get updated by accident?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions