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
1acd959c
Unverified
Commit
1acd959c
authored
Apr 12, 2023
by
Jérémie Bresson
Committed by
GitHub
Apr 12, 2023
Browse files
Remove deprecated methods in the "models" package (#949)
parent
b404e8a7
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/Branch.java
View file @
1acd959c
...
@@ -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
;
...
...
src/main/java/org/gitlab4j/api/models/GroupFilter.java
View file @
1acd959c
...
@@ -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
...
...
src/main/java/org/gitlab4j/api/models/Pipeline.java
View file @
1acd959c
...
@@ -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
;
}
}
...
...
src/main/java/org/gitlab4j/api/models/ProjectFilter.java
View file @
1acd959c
...
@@ -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.
*
*
...
...
src/main/java/org/gitlab4j/api/models/PushData.java
View file @
1acd959c
...
@@ -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
;
}
}
...
...
src/main/java/org/gitlab4j/api/models/User.java
View file @
1acd959c
...
@@ -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
));
...
...
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