Skip to content

Commit c2a309e

Browse files
authored
Remove deprecated "get/setXxxx_at" methods (#1063)
1 parent a7b2192 commit c2a309e

File tree

5 files changed

+1
-128
lines changed

5 files changed

+1
-128
lines changed

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

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,4 @@ public Date getCreatedAt() {
3434
public void setCreatedAt(Date createdAt) {
3535
this.createdAt = createdAt;
3636
}
37-
38-
/**
39-
* @deprecated Replaced by {@link #getCreatedAt()}
40-
* @return the created at Date
41-
*/
42-
@Deprecated
43-
@JsonIgnore
44-
public Date getCreated_at() {
45-
return createdAt;
46-
}
47-
48-
/**
49-
* @deprecated Replaced by {@link #setCreatedAt(Date)}
50-
* @param createdAt new created at value
51-
*/
52-
@Deprecated
53-
@JsonIgnore
54-
public void setCreated_at(Date createdAt) {
55-
this.createdAt = createdAt;
56-
}}
37+
}

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,6 @@ public void setCreatedAt(Date createdAt) {
4040
this.createdAt = createdAt;
4141
}
4242

43-
/**
44-
* @deprecated Replaced by {@link #getCreatedAt()}
45-
* @return the created at Date
46-
*/
47-
@Deprecated
48-
@JsonIgnore
49-
public Date getCreated_at() {
50-
return createdAt;
51-
}
52-
53-
/**
54-
* @deprecated Replaced by {@link #setCreatedAt(Date)}
55-
* @param createdAt new created at value
56-
*/
57-
@Deprecated
58-
@JsonIgnore
59-
public void setCreated_at(Date createdAt) {
60-
this.createdAt = createdAt;
61-
}
6243
public String getFileName() {
6344
return fileName;
6445
}

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,6 @@ public void setCommittedAt(Date committedAt) {
158158
this.committedAt = committedAt;
159159
}
160160

161-
/**
162-
* @deprecated Replaced by {@link #getStartedAt()}
163-
* @return the started at Date
164-
*/
165-
@Deprecated
166-
@JsonIgnore
167-
public Date getStarted_at() {
168-
return startedAt;
169-
}
170-
171161
public String getCoverage() {
172162
return coverage;
173163
}

src/main/java/org/gitlab4j/api/webhook/BuildEvent.java

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -121,26 +121,6 @@ public void setBuildStartedAt(Date buildStartedAt) {
121121
this.buildStartedAt = buildStartedAt;
122122
}
123123

124-
/**
125-
* @deprecated Replaced by {@link #getBuildStartedAt()}
126-
* @return the buildstarted at Date
127-
*/
128-
@Deprecated
129-
@JsonIgnore
130-
public Date getBuildStarted_at() {
131-
return buildStartedAt;
132-
}
133-
134-
/**
135-
* @deprecated Replaced by {@link #setBuildStartedAt(Date)}
136-
* @param buildStartedAt new buildstarted at value
137-
*/
138-
@Deprecated
139-
@JsonIgnore
140-
public void setBuildStarted_at(Date buildStartedAt) {
141-
this.buildStartedAt = buildStartedAt;
142-
}
143-
144124
public Date getBuildFinishedAt() {
145125
return buildFinishedAt;
146126
}
@@ -149,26 +129,6 @@ public void setBuildFinishedAt(Date buildFinishedAt) {
149129
this.buildFinishedAt = buildFinishedAt;
150130
}
151131

152-
/**
153-
* @deprecated Replaced by {@link #getBuildFinishedAt()}
154-
* @return the buildfinished at Date
155-
*/
156-
@Deprecated
157-
@JsonIgnore
158-
public Date getBuildFinished_at() {
159-
return buildFinishedAt;
160-
}
161-
162-
/**
163-
* @deprecated Replaced by {@link #setBuildFinishedAt(Date)}
164-
* @param buildFinishedAt new buildfinished at value
165-
*/
166-
@Deprecated
167-
@JsonIgnore
168-
public void setBuildFinished_at(Date buildFinishedAt) {
169-
this.buildFinishedAt = buildFinishedAt;
170-
}
171-
172132
public Float getBuildDuration() {
173133
return buildDuration;
174134
}

src/main/java/org/gitlab4j/api/webhook/JobEvent.java

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -113,26 +113,6 @@ public void setJobStartedAt(Date jobStartedAt) {
113113
this.jobStartedAt = jobStartedAt;
114114
}
115115

116-
/**
117-
* @deprecated Replaced by {@link #getJobStartedAt()}
118-
* @return the jobstarted at Date
119-
*/
120-
@Deprecated
121-
@JsonIgnore
122-
public Date getJobStarted_at() {
123-
return jobStartedAt;
124-
}
125-
126-
/**
127-
* @deprecated Replaced by {@link #setJobStartedAt(Date)}
128-
* @param jobStartedAt new jobstarted at value
129-
*/
130-
@Deprecated
131-
@JsonIgnore
132-
public void setJobStarted_at(Date jobStartedAt) {
133-
this.jobStartedAt = jobStartedAt;
134-
}
135-
136116
public Date getJobFinishedAt() {
137117
return jobFinishedAt;
138118
}
@@ -141,25 +121,6 @@ public void setJobFinishedAt(Date jobFinishedAt) {
141121
this.jobFinishedAt = jobFinishedAt;
142122
}
143123

144-
/**
145-
* @deprecated Replaced by {@link #getJobFinishedAt()}
146-
* @return the jobfinished at Date
147-
*/
148-
@Deprecated
149-
@JsonIgnore
150-
public Date getJobFinished_at() {
151-
return jobFinishedAt;
152-
}
153-
154-
/**
155-
* @deprecated Replaced by {@link #setJobFinishedAt(Date)}
156-
* @param jobFinishedAt new jobfinished at value
157-
*/
158-
@Deprecated
159-
@JsonIgnore
160-
public void setJobFinished_at(Date jobFinishedAt) {
161-
this.jobFinishedAt = jobFinishedAt;
162-
}
163124
public Integer getJobDuration() {
164125
return jobDuration;
165126
}

0 commit comments

Comments
 (0)