You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java: incompatible types: possible lossy conversion from long to int
This is due to a recent change: fdcf74e where GHTeam
extends GHObject, which causes an inheritance of the GHObject#getId() that is returning a long,
instead of the previous version of GHTeam#getId() that was returning an int.
Expected behavior
We should be able to "chain" the creation of a team with a direct call without the need for type conversion.
Additional context
I think that this should be as easy as GHTeamBuilder accepting a long instead of an int:
- public GHTeamBuilder parentTeamId(int parentTeamId);+ public GHTeamBuilder parentTeamId(long parentTeamId);
The text was updated successfully, but these errors were encountered:
Describe the bug
The identifier for a GHTeam returns a long, while the team builder accepts an int. This causes
a compile error if not handled.
To Reproduce
I detected this issue because while provisioning teams using the following snippet:
The following compile error is raised:
This is due to a recent change: fdcf74e where GHTeam
extends GHObject, which causes an inheritance of the GHObject#getId() that is returning a long,
instead of the previous version of GHTeam#getId() that was returning an int.
Expected behavior
We should be able to "chain" the creation of a team with a direct call without the need for type conversion.
Additional context
I think that this should be as easy as GHTeamBuilder accepting a long instead of an int:
The text was updated successfully, but these errors were encountered: