Skip to content

Commit 1acd959

Browse files
authored
Remove deprecated methods in the "models" package (#949)
1 parent b404e8a commit 1acd959

File tree

6 files changed

+0
-141
lines changed

6 files changed

+0
-141
lines changed

src/main/java/org/gitlab4j/api/models/Branch.java

-12
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,6 @@ public Branch withDevelopersCanPush(Boolean developersCanPush) {
107107
return this;
108108
}
109109

110-
/**
111-
* Set the merged attribute
112-
* @param merged
113-
* @deprecated Use {@link #withMerged(Boolean)} instead
114-
* @return Current branch instance
115-
*/
116-
@Deprecated
117-
public Branch withDerged(Boolean merged) {
118-
this.merged = merged;
119-
return this;
120-
}
121-
122110
public Branch withMerged(Boolean merged) {
123111
this.merged = merged;
124112
return this;

src/main/java/org/gitlab4j/api/models/GroupFilter.java

-8
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ public GroupFilter withSkipGroups(List<Integer> skipGroups) {
3333
return (this);
3434
}
3535

36-
/**
37-
* @deprecated this method contains a typo, use {@link #withAllAvailable(Boolean)} instead
38-
*/
39-
@Deprecated
40-
public GroupFilter withAllAvailabley(Boolean allAvailable) {
41-
return withAllAvailable(allAvailable);
42-
}
43-
4436
/**
4537
* Show all the groups you have access to (defaults to false for authenticated users, true for admin).
4638
* Attributes owned and min_access_level have precedence

src/main/java/org/gitlab4j/api/models/Pipeline.java

-70
Original file line numberDiff line numberDiff line change
@@ -130,26 +130,6 @@ public void setCommittedAt(Date committed_at) {
130130
this.committedAt = committed_at;
131131
}
132132

133-
/**
134-
* @deprecated Replaced by {@link #getUpdatedAt()}
135-
* @return the updated at Date
136-
*/
137-
@Deprecated
138-
@JsonIgnore
139-
public Date getUpdated_at() {
140-
return updatedAt;
141-
}
142-
143-
/**
144-
* @deprecated Replaced by {@link #setUpdatedAt(Date)}
145-
* @param updatedAt new updated at value
146-
*/
147-
@Deprecated
148-
@JsonIgnore
149-
public void setUpdated_at(Date updatedAt) {
150-
this.updatedAt = updatedAt;
151-
}
152-
153133
/**
154134
* @deprecated Replaced by {@link #getStartedAt()}
155135
* @return the started at Date
@@ -160,56 +140,6 @@ public Date getStarted_at() {
160140
return startedAt;
161141
}
162142

163-
/**
164-
* @deprecated Replaced by {@link #setStartedAt(Date)}
165-
* @param startedAt new started at value
166-
*/
167-
@Deprecated
168-
@JsonIgnore
169-
public void setStarted_at(Date startedAt) {
170-
this.startedAt = startedAt;
171-
}
172-
173-
/**
174-
* @deprecated Replaced by {@link #getFinishedAt()}
175-
* @return the finished at Date
176-
*/
177-
@Deprecated
178-
@JsonIgnore
179-
public Date getFinished_at() {
180-
return finishedAt;
181-
}
182-
183-
/**
184-
* @deprecated Replaced by {@link #setFinishedAt(Date)}
185-
* @param finishedAt new finished at value
186-
*/
187-
@Deprecated
188-
@JsonIgnore
189-
public void setFinished_at(Date finishedAt) {
190-
this.finishedAt = finishedAt;
191-
}
192-
193-
/**
194-
* @deprecated Replaced by {@link #getCommittedAt()}
195-
* @return the committed at Date
196-
*/
197-
@Deprecated
198-
@JsonIgnore
199-
public Date getCommitted_at() {
200-
return committedAt;
201-
}
202-
203-
/**
204-
* @deprecated Replaced by {@link #setCommittedAt(Date)}
205-
* @param committedAt new committed at value
206-
*/
207-
@Deprecated
208-
@JsonIgnore
209-
public void setCommitted_at(Date committedAt) {
210-
this.committedAt = committedAt;
211-
}
212-
213143
public String getCoverage() {
214144
return coverage;
215145
}

src/main/java/org/gitlab4j/api/models/ProjectFilter.java

-13
Original file line numberDiff line numberDiff line change
@@ -226,19 +226,6 @@ public ProjectFilter withRepositoryChecksumFailed(Boolean repositoryChecksumFail
226226
return (this);
227227
}
228228

229-
/**
230-
* Limit by current user minimal access level
231-
*
232-
* @param minAccessLevel limit by current user minimal access level
233-
* @return the reference to this ProjectFilter instance
234-
* @deprecated Replaced by {@link #withMinAccessLevel(AccessLevel) getComponentAt}
235-
*/
236-
@Deprecated
237-
public ProjectFilter minAccessLevel(AccessLevel minAccessLevel) {
238-
this.minAccessLevel = minAccessLevel;
239-
return (this);
240-
}
241-
242229
/**
243230
* Limit by current user minimal access level.
244231
*

src/main/java/org/gitlab4j/api/models/PushData.java

-12
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ public class PushData {
1616
private String ref;
1717
private String commitTitle;
1818

19-
@Deprecated
20-
@JsonIgnore
21-
public Integer getCommit_count() {
22-
return commitCount;
23-
}
24-
25-
@Deprecated
26-
@JsonIgnore
27-
public void setCommit_count(Integer commit_count) {
28-
this.commitCount = commit_count;
29-
}
30-
3119
public Integer getCommitCount() {
3220
return commitCount;
3321
}

src/main/java/org/gitlab4j/api/models/User.java

-26
Original file line numberDiff line numberDiff line change
@@ -423,32 +423,6 @@ public User withCustomAttributes(List<CustomAttribute> customAttributes) {
423423
return this;
424424
}
425425

426-
/**
427-
* Fluent method to set the projects_limit setting.
428-
*
429-
* @param projectsLimit the value for the projects_limit setting
430-
* @deprecated Replaced by {@link #withProjectsLimit(Integer)}
431-
* @see #withProjectsLimit(Integer)
432-
* @return the value of this instance
433-
*/
434-
@Deprecated
435-
public User withProjectLimit(Integer projectsLimit) {
436-
return withProjectsLimit(projectsLimit);
437-
}
438-
439-
/**
440-
* Fluent method to set the shared_projects_minutes_limit setting.
441-
*
442-
* @param sharedRunnersMinuteLimit the value for the shared_projects_minutes_limit setting
443-
* @deprecated Replaced by {@link #withSharedRunnersMinutesLimit(Integer)}
444-
* @see #withSharedRunnersMinutesLimit(Integer)
445-
* @return the value of this instance
446-
*/
447-
@Deprecated
448-
public User withSharedRunnersMinuteLimit(Integer sharedRunnersMinuteLimit) {
449-
return withSharedRunnersMinutesLimit(sharedRunnersMinuteLimit);
450-
}
451-
452426
@Override
453427
public String toString() {
454428
return (JacksonJson.toJsonString(this));

0 commit comments

Comments
 (0)