Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
c2a309ea
Unverified
Commit
c2a309ea
authored
Nov 16, 2023
by
Jérémie Bresson
Committed by
GitHub
Nov 16, 2023
Browse files
Remove deprecated "get/setXxxx_at" methods (#1063)
parent
a7b21929
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/GpgKey.java
View file @
c2a309ea
...
@@ -34,23 +34,4 @@ public class GpgKey {
...
@@ -34,23 +34,4 @@ public class GpgKey {
public
void
setCreatedAt
(
Date
createdAt
)
{
public
void
setCreatedAt
(
Date
createdAt
)
{
this
.
createdAt
=
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
;
}}
src/main/java/org/gitlab4j/api/models/PackageFile.java
View file @
c2a309ea
...
@@ -40,25 +40,6 @@ public class PackageFile {
...
@@ -40,25 +40,6 @@ public class PackageFile {
this
.
createdAt
=
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
()
{
public
String
getFileName
()
{
return
fileName
;
return
fileName
;
}
}
...
...
src/main/java/org/gitlab4j/api/models/Pipeline.java
View file @
c2a309ea
...
@@ -158,16 +158,6 @@ public class Pipeline {
...
@@ -158,16 +158,6 @@ public class Pipeline {
this
.
committedAt
=
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
()
{
public
String
getCoverage
()
{
return
coverage
;
return
coverage
;
}
}
...
...
src/main/java/org/gitlab4j/api/webhook/BuildEvent.java
View file @
c2a309ea
...
@@ -121,26 +121,6 @@ public class BuildEvent extends AbstractEvent {
...
@@ -121,26 +121,6 @@ public class BuildEvent extends AbstractEvent {
this
.
buildStartedAt
=
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
()
{
public
Date
getBuildFinishedAt
()
{
return
buildFinishedAt
;
return
buildFinishedAt
;
}
}
...
@@ -149,26 +129,6 @@ public class BuildEvent extends AbstractEvent {
...
@@ -149,26 +129,6 @@ public class BuildEvent extends AbstractEvent {
this
.
buildFinishedAt
=
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
()
{
public
Float
getBuildDuration
()
{
return
buildDuration
;
return
buildDuration
;
}
}
...
...
src/main/java/org/gitlab4j/api/webhook/JobEvent.java
View file @
c2a309ea
...
@@ -113,26 +113,6 @@ public class JobEvent extends AbstractEvent {
...
@@ -113,26 +113,6 @@ public class JobEvent extends AbstractEvent {
this
.
jobStartedAt
=
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
()
{
public
Date
getJobFinishedAt
()
{
return
jobFinishedAt
;
return
jobFinishedAt
;
}
}
...
@@ -141,25 +121,6 @@ public class JobEvent extends AbstractEvent {
...
@@ -141,25 +121,6 @@ public class JobEvent extends AbstractEvent {
this
.
jobFinishedAt
=
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
()
{
public
Integer
getJobDuration
()
{
return
jobDuration
;
return
jobDuration
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment