Skip to content

Commit

Permalink
Use method reference
Browse files Browse the repository at this point in the history
  • Loading branch information
kokosing committed Nov 22, 2021
1 parent 30c6d91 commit 0f7cb1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ public ConnectorTableProperties getTableProperties(ConnectorSession session, Con
@Override
public Set<String> listRoles(ConnectorSession session)
{
return roleGrants.apply(session, Optional.empty(), Optional.empty(), OptionalLong.empty()).stream().map(grant -> grant.getRoleName()).collect(toImmutableSet());
return roleGrants.apply(session, Optional.empty(), Optional.empty(), OptionalLong.empty()).stream().map(RoleGrant::getRoleName).collect(toImmutableSet());
}

@Override
Expand Down

0 comments on commit 0f7cb1f

Please sign in to comment.