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
594bc6c2
Unverified
Commit
594bc6c2
authored
Mar 14, 2022
by
Gautier de Saint Martin Lacaze
Browse files
Add backward compatibility in DeploymetFilter
parent
1a376848
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/DeploymentFilter.java
View file @
594bc6c2
...
@@ -75,6 +75,38 @@ public class DeploymentFilter {
...
@@ -75,6 +75,38 @@ public class DeploymentFilter {
this
.
updatedBefore
=
updatedBefore
;
this
.
updatedBefore
=
updatedBefore
;
}
}
/**
* @deprecated use {@link #getUpdatedAfter()}
*/
@Deprecated
public
Date
getFinishedAfter
()
{
return
updatedAfter
;
}
/**
* @deprecated use {@link #setUpdatedAfter(Date)}
*/
@Deprecated
public
void
setFinishedAfter
(
Date
finishedAfter
)
{
this
.
updatedAfter
=
finishedAfter
;
}
/**
* @deprecated use {@link #getUpdatedBefore()}
*/
@Deprecated
public
Date
getFinishedBefore
()
{
return
updatedBefore
;
}
/**
* @deprecated use {@link #setUpdatedBefore(Date)}
*/
@Deprecated
public
void
setFinishedBefore
(
Date
finishedBefore
)
{
this
.
updatedBefore
=
finishedBefore
;
}
public
String
getEnvironment
()
{
public
String
getEnvironment
()
{
return
environment
;
return
environment
;
}
}
...
@@ -111,6 +143,24 @@ public class DeploymentFilter {
...
@@ -111,6 +143,24 @@ public class DeploymentFilter {
return
(
this
);
return
(
this
);
}
}
/**
* @deprecated use {@link #withUpdatedAfter(Date)}
*/
@Deprecated
public
DeploymentFilter
withFinishedAfter
(
Date
finishedAfter
)
{
this
.
updatedAfter
=
finishedAfter
;
return
(
this
);
}
/**
* @deprecated use {@link #withUpdatedBefore(Date)}
*/
@Deprecated
public
DeploymentFilter
withFinishedBefore
(
Date
finishedBefore
)
{
this
.
updatedBefore
=
finishedBefore
;
return
(
this
);
}
public
DeploymentFilter
withEnvironment
(
String
environment
)
{
public
DeploymentFilter
withEnvironment
(
String
environment
)
{
this
.
environment
=
environment
;
this
.
environment
=
environment
;
return
(
this
);
return
(
this
);
...
...
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