Skip to content

Remove deprecated methods in the "models" package #949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/main/java/org/gitlab4j/api/models/Branch.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,6 @@ public Branch withDevelopersCanPush(Boolean developersCanPush) {
return this;
}

/**
* Set the merged attribute
* @param merged
* @deprecated Use {@link #withMerged(Boolean)} instead
* @return Current branch instance
*/
@Deprecated
public Branch withDerged(Boolean merged) {
this.merged = merged;
return this;
}

public Branch withMerged(Boolean merged) {
this.merged = merged;
return this;
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/org/gitlab4j/api/models/GroupFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ public GroupFilter withSkipGroups(List<Integer> skipGroups) {
return (this);
}

/**
* @deprecated this method contains a typo, use {@link #withAllAvailable(Boolean)} instead
*/
@Deprecated
public GroupFilter withAllAvailabley(Boolean allAvailable) {
return withAllAvailable(allAvailable);
}

/**
* Show all the groups you have access to (defaults to false for authenticated users, true for admin).
* Attributes owned and min_access_level have precedence
Expand Down
70 changes: 0 additions & 70 deletions src/main/java/org/gitlab4j/api/models/Pipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,26 +129,6 @@ public void setCommittedAt(Date committed_at) {
this.committedAt = committed_at;
}

/**
* @deprecated Replaced by {@link #getUpdatedAt()}
* @return the updated at Date
*/
@Deprecated
@JsonIgnore
public Date getUpdated_at() {
return updatedAt;
}

/**
* @deprecated Replaced by {@link #setUpdatedAt(Date)}
* @param updatedAt new updated at value
*/
@Deprecated
@JsonIgnore
public void setUpdated_at(Date updatedAt) {
this.updatedAt = updatedAt;
}

/**
* @deprecated Replaced by {@link #getStartedAt()}
* @return the started at Date
Expand All @@ -159,56 +139,6 @@ public Date getStarted_at() {
return startedAt;
}

/**
* @deprecated Replaced by {@link #setStartedAt(Date)}
* @param startedAt new started at value
*/
@Deprecated
@JsonIgnore
public void setStarted_at(Date startedAt) {
this.startedAt = startedAt;
}

/**
* @deprecated Replaced by {@link #getFinishedAt()}
* @return the finished at Date
*/
@Deprecated
@JsonIgnore
public Date getFinished_at() {
return finishedAt;
}

/**
* @deprecated Replaced by {@link #setFinishedAt(Date)}
* @param finishedAt new finished at value
*/
@Deprecated
@JsonIgnore
public void setFinished_at(Date finishedAt) {
this.finishedAt = finishedAt;
}

/**
* @deprecated Replaced by {@link #getCommittedAt()}
* @return the committed at Date
*/
@Deprecated
@JsonIgnore
public Date getCommitted_at() {
return committedAt;
}

/**
* @deprecated Replaced by {@link #setCommittedAt(Date)}
* @param committedAt new committed at value
*/
@Deprecated
@JsonIgnore
public void setCommitted_at(Date committedAt) {
this.committedAt = committedAt;
}

public String getCoverage() {
return coverage;
}
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/org/gitlab4j/api/models/ProjectFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,6 @@ public ProjectFilter withRepositoryChecksumFailed(Boolean repositoryChecksumFail
return (this);
}

/**
* Limit by current user minimal access level
*
* @param minAccessLevel limit by current user minimal access level
* @return the reference to this ProjectFilter instance
* @deprecated Replaced by {@link #withMinAccessLevel(AccessLevel) getComponentAt}
*/
@Deprecated
public ProjectFilter minAccessLevel(AccessLevel minAccessLevel) {
this.minAccessLevel = minAccessLevel;
return (this);
}

/**
* Limit by current user minimal access level.
*
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/org/gitlab4j/api/models/PushData.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@ public class PushData {
private String ref;
private String commitTitle;

@Deprecated
@JsonIgnore
public Integer getCommit_count() {
return commitCount;
}

@Deprecated
@JsonIgnore
public void setCommit_count(Integer commit_count) {
this.commitCount = commit_count;
}

public Integer getCommitCount() {
return commitCount;
}
Expand Down
26 changes: 0 additions & 26 deletions src/main/java/org/gitlab4j/api/models/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,32 +423,6 @@ public User withCustomAttributes(List<CustomAttribute> customAttributes) {
return this;
}

/**
* Fluent method to set the projects_limit setting.
*
* @param projectsLimit the value for the projects_limit setting
* @deprecated Replaced by {@link #withProjectsLimit(Integer)}
* @see #withProjectsLimit(Integer)
* @return the value of this instance
*/
@Deprecated
public User withProjectLimit(Integer projectsLimit) {
return withProjectsLimit(projectsLimit);
}

/**
* Fluent method to set the shared_projects_minutes_limit setting.
*
* @param sharedRunnersMinuteLimit the value for the shared_projects_minutes_limit setting
* @deprecated Replaced by {@link #withSharedRunnersMinutesLimit(Integer)}
* @see #withSharedRunnersMinutesLimit(Integer)
* @return the value of this instance
*/
@Deprecated
public User withSharedRunnersMinuteLimit(Integer sharedRunnersMinuteLimit) {
return withSharedRunnersMinutesLimit(sharedRunnersMinuteLimit);
}

@Override
public String toString() {
return (JacksonJson.toJsonString(this));
Expand Down