File tree Expand file tree Collapse file tree 9 files changed +58
-0
lines changed
src/main/java/org/gitlab4j/api/models Expand file tree Collapse file tree 9 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 11
22package org .gitlab4j .api .models ;
33
4+ import org .gitlab4j .api .utils .JacksonJson ;
5+
46import com .fasterxml .jackson .annotation .JsonIgnore ;
57
68/**
@@ -48,4 +50,9 @@ public void setGroup(Group group) {
4850 public Object getApprovedBy () {
4951 return (user != null ? user : group );
5052 }
53+
54+ @ Override
55+ public String toString () {
56+ return (JacksonJson .toJsonString (this ));
57+ }
5158}
Original file line number Diff line number Diff line change 11
22package org .gitlab4j .api .models ;
33
4+ import org .gitlab4j .api .utils .JacksonJson ;
5+
46public class Assignee extends AbstractUser <Assignee > {
7+
8+ @ Override
9+ public String toString () {
10+ return (JacksonJson .toJsonString (this ));
11+ }
512}
Original file line number Diff line number Diff line change 11package org .gitlab4j .api .models ;
22
3+ import org .gitlab4j .api .utils .JacksonJson ;
4+
35public class DiffRef {
46 private String baseSha ;
57 private String headSha ;
@@ -31,4 +33,9 @@ public String getStartSha() {
3133 public void setStartSha (final String startSha ) {
3234 this .startSha = startSha ;
3335 }
36+
37+ @ Override
38+ public String toString () {
39+ return (JacksonJson .toJsonString (this ));
40+ }
3441}
Original file line number Diff line number Diff line change 44
55import org .gitlab4j .api .Constants .GroupOrderBy ;
66import org .gitlab4j .api .Constants .SortOrder ;
7+ import org .gitlab4j .api .utils .JacksonJson ;
78import org .gitlab4j .api .GitLabApiForm ;
89
910/**
@@ -152,4 +153,9 @@ public GitLabApiForm getQueryParams() {
152153 .withParam ("top_level_only" , topLevelOnly )
153154 );
154155 }
156+
157+ @ Override
158+ public String toString () {
159+ return (JacksonJson .toJsonString (this ));
160+ }
155161}
Original file line number Diff line number Diff line change 22
33import org .gitlab4j .api .Constants .ProjectOrderBy ;
44import org .gitlab4j .api .Constants .SortOrder ;
5+ import org .gitlab4j .api .utils .JacksonJson ;
56import org .gitlab4j .api .GitLabApiForm ;
67
78/**
@@ -189,4 +190,9 @@ public GitLabApiForm getQueryParams() {
189190 .withParam ("include_subgroups" , includeSubGroups )
190191 );
191192 }
193+
194+ @ Override
195+ public String toString () {
196+ return (JacksonJson .toJsonString (this ));
197+ }
192198}
Original file line number Diff line number Diff line change 1212import org .gitlab4j .api .Constants .MergeRequestSearchIn ;
1313import org .gitlab4j .api .Constants .MergeRequestState ;
1414import org .gitlab4j .api .Constants .SortOrder ;
15+ import org .gitlab4j .api .utils .JacksonJson ;
1516import org .gitlab4j .api .GitLabApiForm ;
1617
1718import com .fasterxml .jackson .annotation .JsonIgnore ;
@@ -369,4 +370,9 @@ public GitLabApiForm getQueryParams() {
369370 }
370371 return params ;
371372 }
373+
374+ @ Override
375+ public String toString () {
376+ return (JacksonJson .toJsonString (this ));
377+ }
372378}
Original file line number Diff line number Diff line change 55import org .gitlab4j .api .Constants .PipelineOrderBy ;
66import org .gitlab4j .api .Constants .PipelineScope ;
77import org .gitlab4j .api .Constants .SortOrder ;
8+ import org .gitlab4j .api .utils .JacksonJson ;
89import org .gitlab4j .api .GitLabApiForm ;
910
1011import com .fasterxml .jackson .annotation .JsonIgnore ;
@@ -166,4 +167,9 @@ public GitLabApiForm getQueryParams() {
166167 .withParam ("order_by" , orderBy )
167168 .withParam ("sort" , sort ));
168169 }
170+
171+ @ Override
172+ public String toString () {
173+ return (JacksonJson .toJsonString (this ));
174+ }
169175}
Original file line number Diff line number Diff line change 55import org .gitlab4j .api .Constants ;
66import org .gitlab4j .api .Constants .ProjectOrderBy ;
77import org .gitlab4j .api .Constants .SortOrder ;
8+ import org .gitlab4j .api .utils .JacksonJson ;
89import org .gitlab4j .api .GitLabApiForm ;
910
1011/**
@@ -376,4 +377,9 @@ public GitLabApiForm getQueryParams() {
376377 .withParam ("topic_id" ,topic_id )
377378 );
378379 }
380+
381+ @ Override
382+ public String toString () {
383+ return (JacksonJson .toJsonString (this ));
384+ }
379385}
Original file line number Diff line number Diff line change 11package org .gitlab4j .api .models ;
22
3+ import org .gitlab4j .api .utils .JacksonJson ;
4+
35public class Version {
46
57 private String version ;
@@ -20,4 +22,9 @@ public String getRevision() {
2022 public void setRevision (String revision ) {
2123 this .revision = revision ;
2224 }
25+
26+ @ Override
27+ public String toString () {
28+ return (JacksonJson .toJsonString (this ));
29+ }
2330}
You can’t perform that action at this time.
0 commit comments