Skip to content

Commit d870d21

Browse files
committed
Use transformEnum()
1 parent 8c4b2ae commit d870d21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/kohsuke/github/GHTeam.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import java.io.IOException;
77
import java.net.URL;
8-
import java.util.Locale;
98
import java.util.Map;
109
import java.util.Objects;
1110
import java.util.Optional;
@@ -14,6 +13,8 @@
1413

1514
import javax.annotation.Nonnull;
1615

16+
import static org.kohsuke.github.GitHubRequest.transformEnum;
17+
1718
/**
1819
* A team in GitHub organization.
1920
*
@@ -162,7 +163,7 @@ public PagedIterable<GHUser> listMembers(String role) throws IOException {
162163
* the io exception
163164
*/
164165
public PagedIterable<GHUser> listMembers(Role role) throws IOException {
165-
return listMembers(role.name().toLowerCase(Locale.ROOT));
166+
return listMembers(transformEnum(role));
166167
}
167168

168169
/**

0 commit comments

Comments
 (0)