Skip to content

Commit

Permalink
Fix GHIssue.getState() No enum constant
Browse files Browse the repository at this point in the history
  • Loading branch information
janinko committed Aug 28, 2012
1 parent ae2d01a commit 58d10df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHIssue.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Locale;

/**
* Represents an issue on GitHub.
Expand Down Expand Up @@ -93,7 +94,7 @@ public String getTitle() {
}

public GHIssueState getState() {
return Enum.valueOf(GHIssueState.class, state);
return Enum.valueOf(GHIssueState.class, state.toUpperCase(Locale.ENGLISH));
}

public Collection<String> getLabels() {
Expand Down

0 comments on commit 58d10df

Please sign in to comment.