11package org .kohsuke .github ;
22
3+ import com .infradna .tool .bridge_method_injector .WithBridgeMethods ;
4+
35import java .io .IOException ;
46import java .net .URL ;
57import java .util .AbstractList ;
68import java .util .ArrayList ;
79import java .util .Collections ;
8- import java .util .Date ;
910import java .util .List ;
1011
1112/**
@@ -31,11 +32,13 @@ public static class ShortInfo {
3132
3233 private int comment_count ;
3334
34- public GHAuthor getAuthor () {
35+ @ WithBridgeMethods (value =GHAuthor .class ,castRequired =true )
36+ public GitUser getAuthor () {
3537 return author ;
3638 }
3739
38- public GHAuthor getCommitter () {
40+ @ WithBridgeMethods (value =GHAuthor .class ,castRequired =true )
41+ public GitUser getCommitter () {
3942 return committer ;
4043 }
4144
@@ -50,21 +53,11 @@ public int getCommentCount() {
5053 return comment_count ;
5154 }
5255 }
53-
54- public static class GHAuthor {
55- private String name ,email ,date ;
5656
57- public String getName () {
58- return name ;
59- }
60-
61- public String getEmail () {
62- return email ;
63- }
64-
65- public Date getDate () {
66- return GitHub .parseDate (date );
67- }
57+ /**
58+ * @deprecated Use {@link GitUser} instead.
59+ */
60+ public static class GHAuthor extends GitUser {
6861 }
6962
7063 public static class Stats {
0 commit comments