File tree 9 files changed +58
-0
lines changed
src/main/java/org/gitlab4j/api/models
9 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 1
1
2
2
package org .gitlab4j .api .models ;
3
3
4
+ import org .gitlab4j .api .utils .JacksonJson ;
5
+
4
6
import com .fasterxml .jackson .annotation .JsonIgnore ;
5
7
6
8
/**
@@ -48,4 +50,9 @@ public void setGroup(Group group) {
48
50
public Object getApprovedBy () {
49
51
return (user != null ? user : group );
50
52
}
53
+
54
+ @ Override
55
+ public String toString () {
56
+ return (JacksonJson .toJsonString (this ));
57
+ }
51
58
}
Original file line number Diff line number Diff line change 1
1
2
2
package org .gitlab4j .api .models ;
3
3
4
+ import org .gitlab4j .api .utils .JacksonJson ;
5
+
4
6
public class Assignee extends AbstractUser <Assignee > {
7
+
8
+ @ Override
9
+ public String toString () {
10
+ return (JacksonJson .toJsonString (this ));
11
+ }
5
12
}
Original file line number Diff line number Diff line change 1
1
package org .gitlab4j .api .models ;
2
2
3
+ import org .gitlab4j .api .utils .JacksonJson ;
4
+
3
5
public class DiffRef {
4
6
private String baseSha ;
5
7
private String headSha ;
@@ -31,4 +33,9 @@ public String getStartSha() {
31
33
public void setStartSha (final String startSha ) {
32
34
this .startSha = startSha ;
33
35
}
36
+
37
+ @ Override
38
+ public String toString () {
39
+ return (JacksonJson .toJsonString (this ));
40
+ }
34
41
}
Original file line number Diff line number Diff line change 4
4
5
5
import org .gitlab4j .api .Constants .GroupOrderBy ;
6
6
import org .gitlab4j .api .Constants .SortOrder ;
7
+ import org .gitlab4j .api .utils .JacksonJson ;
7
8
import org .gitlab4j .api .GitLabApiForm ;
8
9
9
10
/**
@@ -160,4 +161,9 @@ public GitLabApiForm getQueryParams() {
160
161
.withParam ("top_level_only" , topLevelOnly )
161
162
);
162
163
}
164
+
165
+ @ Override
166
+ public String toString () {
167
+ return (JacksonJson .toJsonString (this ));
168
+ }
163
169
}
Original file line number Diff line number Diff line change 2
2
3
3
import org .gitlab4j .api .Constants .ProjectOrderBy ;
4
4
import org .gitlab4j .api .Constants .SortOrder ;
5
+ import org .gitlab4j .api .utils .JacksonJson ;
5
6
import org .gitlab4j .api .GitLabApiForm ;
6
7
7
8
/**
@@ -189,4 +190,9 @@ public GitLabApiForm getQueryParams() {
189
190
.withParam ("include_subgroups" , includeSubGroups )
190
191
);
191
192
}
193
+
194
+ @ Override
195
+ public String toString () {
196
+ return (JacksonJson .toJsonString (this ));
197
+ }
192
198
}
Original file line number Diff line number Diff line change 12
12
import org .gitlab4j .api .Constants .MergeRequestSearchIn ;
13
13
import org .gitlab4j .api .Constants .MergeRequestState ;
14
14
import org .gitlab4j .api .Constants .SortOrder ;
15
+ import org .gitlab4j .api .utils .JacksonJson ;
15
16
import org .gitlab4j .api .GitLabApiForm ;
16
17
17
18
import com .fasterxml .jackson .annotation .JsonIgnore ;
@@ -369,4 +370,9 @@ public GitLabApiForm getQueryParams() {
369
370
}
370
371
return params ;
371
372
}
373
+
374
+ @ Override
375
+ public String toString () {
376
+ return (JacksonJson .toJsonString (this ));
377
+ }
372
378
}
Original file line number Diff line number Diff line change 5
5
import org .gitlab4j .api .Constants .PipelineOrderBy ;
6
6
import org .gitlab4j .api .Constants .PipelineScope ;
7
7
import org .gitlab4j .api .Constants .SortOrder ;
8
+ import org .gitlab4j .api .utils .JacksonJson ;
8
9
import org .gitlab4j .api .GitLabApiForm ;
9
10
10
11
import com .fasterxml .jackson .annotation .JsonIgnore ;
@@ -166,4 +167,9 @@ public GitLabApiForm getQueryParams() {
166
167
.withParam ("order_by" , orderBy )
167
168
.withParam ("sort" , sort ));
168
169
}
170
+
171
+ @ Override
172
+ public String toString () {
173
+ return (JacksonJson .toJsonString (this ));
174
+ }
169
175
}
Original file line number Diff line number Diff line change 5
5
import org .gitlab4j .api .Constants ;
6
6
import org .gitlab4j .api .Constants .ProjectOrderBy ;
7
7
import org .gitlab4j .api .Constants .SortOrder ;
8
+ import org .gitlab4j .api .utils .JacksonJson ;
8
9
import org .gitlab4j .api .GitLabApiForm ;
9
10
10
11
/**
@@ -389,4 +390,9 @@ public GitLabApiForm getQueryParams() {
389
390
.withParam ("topic_id" ,topic_id )
390
391
);
391
392
}
393
+
394
+ @ Override
395
+ public String toString () {
396
+ return (JacksonJson .toJsonString (this ));
397
+ }
392
398
}
Original file line number Diff line number Diff line change 1
1
package org .gitlab4j .api .models ;
2
2
3
+ import org .gitlab4j .api .utils .JacksonJson ;
4
+
3
5
public class Version {
4
6
5
7
private String version ;
@@ -20,4 +22,9 @@ public String getRevision() {
20
22
public void setRevision (String revision ) {
21
23
this .revision = revision ;
22
24
}
25
+
26
+ @ Override
27
+ public String toString () {
28
+ return (JacksonJson .toJsonString (this ));
29
+ }
23
30
}
You can’t perform that action at this time.
0 commit comments