FindBugs: Fix over 100 issues and enforce FindBugs

This commit is contained in:
Oleg Nenashev
2015-07-20 12:28:41 +03:00
parent ebc97f42ad
commit 79c5b2edd5
33 changed files with 210 additions and 54 deletions

View File

@@ -1,6 +1,7 @@
package org.kohsuke.github;
import java.net.URL;
import java.util.Locale;
public class GHDeploymentStatus extends GHObject {
private GHRepository owner;
@@ -28,8 +29,9 @@ public class GHDeploymentStatus extends GHObject {
public URL getRepositoryUrl() {
return GitHub.parseURL(repository_url);
}
public GHDeploymentState getState() {
return GHDeploymentState.valueOf(state.toUpperCase());
return GHDeploymentState.valueOf(state.toUpperCase(Locale.ENGLISH));
}
/**