diff --git a/pom.xml b/pom.xml index ead1665db6..dea15034a2 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.kohsuke cortexapps-github-api - 1.319 + 1.320 GitHub API for Java https://github-api.kohsuke.org/ GitHub API for Java @@ -220,17 +220,17 @@ all - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - true - - sonatype-nexus-staging - https://oss.sonatype.org/ - true - - + + + + + + + + + + + org.codehaus.mojo animal-sniffer-maven-plugin @@ -260,21 +260,21 @@ maven-site-plugin 3.12.1 - - org.apache.maven.plugins - maven-release-plugin - 2.5.3 - - true - false - release - deploy - - - - org.sonatype.plugins - nexus-staging-maven-plugin - + + + + + + + + + + + + + + + org.apache.maven.plugins maven-project-info-reports-plugin diff --git a/src/main/java/org/kohsuke/github/GHCommit.java b/src/main/java/org/kohsuke/github/GHCommit.java index 3a2400e019..42fd50779a 100644 --- a/src/main/java/org/kohsuke/github/GHCommit.java +++ b/src/main/java/org/kohsuke/github/GHCommit.java @@ -253,19 +253,19 @@ public static class Parent { /** * The Class User. */ - static class User { + public static class User { /** The gravatar id. */ // TODO: what if someone who doesn't have an account on GitHub makes a commit? @SuppressFBWarnings(value = "UUF_UNUSED_FIELD", justification = "We don't provide it in API now") - String url, avatar_url, gravatar_id; + public String url, avatar_url, gravatar_id; /** The id. */ @SuppressFBWarnings(value = "UUF_UNUSED_FIELD", justification = "We don't provide it in API now") int id; /** The login. */ - String login; + public String login; } /** The sha. */ @@ -463,12 +463,8 @@ public List getParents() throws IOException { * @throws IOException * the io exception */ - public GHUser getAuthor() throws IOException { - if (author != null) { - return resolveUser(author); - } - populate(); - return resolveUser(author); + public User getAuthor() throws IOException { + return author; } /**