Unverified Commit 1acd959c authored by Jérémie Bresson's avatar Jérémie Bresson Committed by GitHub
Browse files

Remove deprecated methods in the "models" package (#949)

parent b404e8a7
...@@ -107,18 +107,6 @@ public class Branch { ...@@ -107,18 +107,6 @@ public class Branch {
return this; 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) { public Branch withMerged(Boolean merged) {
this.merged = merged; this.merged = merged;
return this; return this;
......
...@@ -33,14 +33,6 @@ public class GroupFilter { ...@@ -33,14 +33,6 @@ public class GroupFilter {
return (this); 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). * 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 * Attributes owned and min_access_level have precedence
......
...@@ -130,26 +130,6 @@ public class Pipeline { ...@@ -130,26 +130,6 @@ public class Pipeline {
this.committedAt = 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()} * @deprecated Replaced by {@link #getStartedAt()}
* @return the started at Date * @return the started at Date
...@@ -160,56 +140,6 @@ public class Pipeline { ...@@ -160,56 +140,6 @@ public class Pipeline {
return startedAt; 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() { public String getCoverage() {
return coverage; return coverage;
} }
......
...@@ -226,19 +226,6 @@ public class ProjectFilter { ...@@ -226,19 +226,6 @@ public class ProjectFilter {
return (this); 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. * Limit by current user minimal access level.
* *
......
...@@ -16,18 +16,6 @@ public class PushData { ...@@ -16,18 +16,6 @@ public class PushData {
private String ref; private String ref;
private String commitTitle; 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() { public Integer getCommitCount() {
return commitCount; return commitCount;
} }
......
...@@ -423,32 +423,6 @@ public class User extends AbstractUser<User> { ...@@ -423,32 +423,6 @@ public class User extends AbstractUser<User> {
return this; 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 @Override
public String toString() { public String toString() {
return (JacksonJson.toJsonString(this)); return (JacksonJson.toJsonString(this));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment