Skip to content

Commit efab2bd

Browse files
committed
- code linting
1 parent 7383e64 commit efab2bd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/com/microsoft/graph/core/DefaultConnectionConfig.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public void setReadTimeout(int readTimeoutValue) {
110110
* @param maxRedirects Max redirects that a request can take
111111
*/
112112
public void setMaxRedirects(int maxRedirects) {
113-
this.maxRedirects = maxRedirects;
113+
DefaultConnectionConfig.maxRedirects = maxRedirects;
114114
}
115115

116116
/**
@@ -128,7 +128,7 @@ public int getMaxRedirects() {
128128
* @param shouldRedirect Callback called before doing a redirect
129129
*/
130130
public void setShouldRedirect(IShouldRedirect shouldRedirect) {
131-
this.shouldRedirect = shouldRedirect;
131+
DefaultConnectionConfig.shouldRedirect = shouldRedirect;
132132
}
133133

134134
/**
@@ -146,7 +146,7 @@ public IShouldRedirect getShouldRedirect() {
146146
* @param shouldretry The callback called before retry
147147
*/
148148
public void setShouldRetry(IShouldRetry shouldretry) {
149-
this.shouldRetry = shouldretry;
149+
DefaultConnectionConfig.shouldRetry = shouldretry;
150150
}
151151

152152
/**
@@ -164,7 +164,7 @@ public IShouldRetry getShouldRetry() {
164164
* @param maxRetries Max retries for a request
165165
*/
166166
public void setMaxRetries(int maxRetries) {
167-
this.maxRetries = maxRetries;
167+
DefaultConnectionConfig.maxRetries = maxRetries;
168168
}
169169

170170
/**
@@ -182,7 +182,7 @@ public int getMaxRetries() {
182182
* @param delay Delay in seconds between retries
183183
*/
184184
public void setDelay(long delay) {
185-
this.delay = delay;
185+
DefaultConnectionConfig.delay = delay;
186186
}
187187

188188
/**

src/test/java/com/microsoft/graph/http/DefaultHttpProviderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public Map<String, String> getHeaders() {
344344
};
345345
mProvider.setConnectionFactory(new MockConnectionFactory(new MockConnection(data)));
346346

347-
for (final int ignored : codes) {
347+
for (@SuppressWarnings("unused") final int ignored : codes) {
348348
DriveItem result = mProvider.send(new MockHttpRequest(), DriveItem.class, null);
349349
currentCode.incrementAndGet();
350350
assertNull(result);

0 commit comments

Comments
 (0)