Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java-gitlab-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈俊林
java-gitlab-api
Commits
ea6b5686
Commit
ea6b5686
authored
Dec 15, 2015
by
Christian Ivan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code Quality Improvement - @Override annotation should be used on any method overriding
parent
d82e68ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
GitlabHTTPRequestor.java
src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java
+6
-0
GitlabSession.java
src/main/java/org/gitlab/api/models/GitlabSession.java
+2
-0
No files found.
src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java
View file @
ea6b5686
...
...
@@ -191,6 +191,7 @@ public class GitlabHTTPRequestor {
}
}
@Override
public
boolean
hasNext
()
{
fetch
();
if
(
next
!=
null
&&
next
.
getClass
().
isArray
())
{
...
...
@@ -201,6 +202,7 @@ public class GitlabHTTPRequestor {
}
}
@Override
public
T
next
()
{
fetch
();
T
record
=
next
;
...
...
@@ -213,6 +215,7 @@ public class GitlabHTTPRequestor {
return
record
;
}
@Override
public
void
remove
()
{
throw
new
UnsupportedOperationException
();
}
...
...
@@ -367,14 +370,17 @@ public class GitlabHTTPRequestor {
private
void
ignoreCertificateErrors
()
{
TrustManager
[]
trustAllCerts
=
new
TrustManager
[]{
new
X509TrustManager
()
{
@Override
public
java
.
security
.
cert
.
X509Certificate
[]
getAcceptedIssuers
()
{
return
null
;
}
@Override
public
void
checkClientTrusted
(
java
.
security
.
cert
.
X509Certificate
[]
certs
,
String
authType
)
{
}
@Override
public
void
checkServerTrusted
(
java
.
security
.
cert
.
X509Certificate
[]
certs
,
String
authType
)
{
}
...
...
src/main/java/org/gitlab/api/models/GitlabSession.java
View file @
ea6b5686
...
...
@@ -9,10 +9,12 @@ public class GitlabSession extends GitlabUser {
@JsonProperty
(
"private_token"
)
private
String
privateToken
;
@Override
public
String
getPrivateToken
()
{
return
privateToken
;
}
@Override
public
void
setPrivateToken
(
String
privateToken
)
{
this
.
privateToken
=
privateToken
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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