Skip to content

Remove deprecated "get/setXxxx_at" methods #1063

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
Nov 16, 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
21 changes: 1 addition & 20 deletions src/main/java/org/gitlab4j/api/models/GpgKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,4 @@ public Date getCreatedAt() {
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}

/**
* @deprecated Replaced by {@link #getCreatedAt()}
* @return the created at Date
*/
@Deprecated
@JsonIgnore
public Date getCreated_at() {
return createdAt;
}

/**
* @deprecated Replaced by {@link #setCreatedAt(Date)}
* @param createdAt new created at value
*/
@Deprecated
@JsonIgnore
public void setCreated_at(Date createdAt) {
this.createdAt = createdAt;
}}
}
19 changes: 0 additions & 19 deletions src/main/java/org/gitlab4j/api/models/PackageFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,6 @@ public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}

/**
* @deprecated Replaced by {@link #getCreatedAt()}
* @return the created at Date
*/
@Deprecated
@JsonIgnore
public Date getCreated_at() {
return createdAt;
}

/**
* @deprecated Replaced by {@link #setCreatedAt(Date)}
* @param createdAt new created at value
*/
@Deprecated
@JsonIgnore
public void setCreated_at(Date createdAt) {
this.createdAt = createdAt;
}
public String getFileName() {
return fileName;
}
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/org/gitlab4j/api/models/Pipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,6 @@ public void setCommittedAt(Date committedAt) {
this.committedAt = committedAt;
}

/**
* @deprecated Replaced by {@link #getStartedAt()}
* @return the started at Date
*/
@Deprecated
@JsonIgnore
public Date getStarted_at() {
return startedAt;
}

public String getCoverage() {
return coverage;
}
Expand Down
40 changes: 0 additions & 40 deletions src/main/java/org/gitlab4j/api/webhook/BuildEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,26 +121,6 @@ public void setBuildStartedAt(Date buildStartedAt) {
this.buildStartedAt = buildStartedAt;
}

/**
* @deprecated Replaced by {@link #getBuildStartedAt()}
* @return the buildstarted at Date
*/
@Deprecated
@JsonIgnore
public Date getBuildStarted_at() {
return buildStartedAt;
}

/**
* @deprecated Replaced by {@link #setBuildStartedAt(Date)}
* @param buildStartedAt new buildstarted at value
*/
@Deprecated
@JsonIgnore
public void setBuildStarted_at(Date buildStartedAt) {
this.buildStartedAt = buildStartedAt;
}

public Date getBuildFinishedAt() {
return buildFinishedAt;
}
Expand All @@ -149,26 +129,6 @@ public void setBuildFinishedAt(Date buildFinishedAt) {
this.buildFinishedAt = buildFinishedAt;
}

/**
* @deprecated Replaced by {@link #getBuildFinishedAt()}
* @return the buildfinished at Date
*/
@Deprecated
@JsonIgnore
public Date getBuildFinished_at() {
return buildFinishedAt;
}

/**
* @deprecated Replaced by {@link #setBuildFinishedAt(Date)}
* @param buildFinishedAt new buildfinished at value
*/
@Deprecated
@JsonIgnore
public void setBuildFinished_at(Date buildFinishedAt) {
this.buildFinishedAt = buildFinishedAt;
}

public Float getBuildDuration() {
return buildDuration;
}
Expand Down
39 changes: 0 additions & 39 deletions src/main/java/org/gitlab4j/api/webhook/JobEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,26 +113,6 @@ public void setJobStartedAt(Date jobStartedAt) {
this.jobStartedAt = jobStartedAt;
}

/**
* @deprecated Replaced by {@link #getJobStartedAt()}
* @return the jobstarted at Date
*/
@Deprecated
@JsonIgnore
public Date getJobStarted_at() {
return jobStartedAt;
}

/**
* @deprecated Replaced by {@link #setJobStartedAt(Date)}
* @param jobStartedAt new jobstarted at value
*/
@Deprecated
@JsonIgnore
public void setJobStarted_at(Date jobStartedAt) {
this.jobStartedAt = jobStartedAt;
}

public Date getJobFinishedAt() {
return jobFinishedAt;
}
Expand All @@ -141,25 +121,6 @@ public void setJobFinishedAt(Date jobFinishedAt) {
this.jobFinishedAt = jobFinishedAt;
}

/**
* @deprecated Replaced by {@link #getJobFinishedAt()}
* @return the jobfinished at Date
*/
@Deprecated
@JsonIgnore
public Date getJobFinished_at() {
return jobFinishedAt;
}

/**
* @deprecated Replaced by {@link #setJobFinishedAt(Date)}
* @param jobFinishedAt new jobfinished at value
*/
@Deprecated
@JsonIgnore
public void setJobFinished_at(Date jobFinishedAt) {
this.jobFinishedAt = jobFinishedAt;
}
public Integer getJobDuration() {
return jobDuration;
}
Expand Down