Commit ea6b5686 authored by Christian Ivan's avatar Christian Ivan

Code Quality Improvement - @Override annotation should be used on any method overriding

parent d82e68ed
......@@ -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) {
}
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment