Skip to content

Commit d71bdc0

Browse files
committed
- because indentation is fun
Signed-off-by: Vincent Biret <[email protected]>
1 parent df18df4 commit d71bdc0

File tree

10 files changed

+796
-797
lines changed

10 files changed

+796
-797
lines changed

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

Lines changed: 187 additions & 188 deletions
Large diffs are not rendered by default.

src/main/java/com/microsoft/graph/http/BaseCollectionRequestBuilder.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
public class BaseCollectionRequestBuilder<T, T2 extends BaseRequestBuilder<T>,
2121
T3 extends ICollectionResponse<T>,
2222
T4 extends BaseCollectionPage<T, ? extends BaseRequestBuilder<T>>,
23-
T5 extends BaseCollectionRequest<T, T3, T4>> extends BaseRequestBuilder<T> {
24-
private final Class<T5> collRequestClass;
23+
T5 extends BaseCollectionRequest<T, T3, T4>> extends BaseRequestBuilder<T> {
24+
private final Class<T5> collRequestClass;
2525
private final Class<T2> reqBuilderClass;
26-
/**
26+
/**
2727
* The request builder for this collection of ServicePrincipal
2828
*
2929
* @param requestUrl the request URL
@@ -32,11 +32,11 @@ public class BaseCollectionRequestBuilder<T, T2 extends BaseRequestBuilder<T>,
3232
* @param requestBuilderClass the class for the request builder
3333
* @param collectionRequestClass the class for the collection request
3434
*/
35-
public BaseCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions,
35+
public BaseCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions,
3636
@Nonnull final Class<T2> requestBuilderClass,
37-
@Nonnull final Class<T5> collectionRequestClass) {
37+
@Nonnull final Class<T5> collectionRequestClass) {
3838
super(requestUrl, client, requestOptions);
39-
this.collRequestClass = Objects.requireNonNull(collectionRequestClass, "parameter collectionRequestClass cannot be null");
39+
this.collRequestClass = Objects.requireNonNull(collectionRequestClass, "parameter collectionRequestClass cannot be null");
4040
this.reqBuilderClass = Objects.requireNonNull(requestBuilderClass, "parameter requestBuilderClass cannot be null");
4141
}
4242

@@ -64,7 +64,7 @@ public T5 buildRequest(@Nullable final java.util.List<? extends com.microsoft.gr
6464
.newInstance(getRequestUrl(), getClient(), requestOptions);
6565
} catch (IllegalArgumentException | InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException | SecurityException ex) {
6666
throw new ClientException("Could not find the required class", ex);
67-
}
67+
}
6868
}
6969

7070
/**
@@ -81,6 +81,6 @@ public T2 byId(@Nonnull final String id) {
8181
.newInstance(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions());
8282
} catch (IllegalArgumentException | InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException | SecurityException ex) {
8383
throw new ClientException("Could not find the required class", ex);
84-
}
84+
}
8585
}
8686
}

src/main/java/com/microsoft/graph/http/BaseRequest.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -188,19 +188,19 @@ public URL getRequestUrl() {
188188
final Builder uriBuilder = parsedUrl.newBuilder();
189189

190190
for (final QueryOption option : queryOptions) {
191-
uriBuilder.addQueryParameter(option.getName(), option.getValue().toString());
191+
uriBuilder.addQueryParameter(option.getName(), option.getValue().toString());
192192
}
193193

194194
try {
195195
return new URL(uriBuilder.build().toString());
196196
} catch (final MalformedURLException e) {
197-
if (this instanceof CustomRequest) {
198-
this.getClient().getLogger().logError("Invalid custom URL: " + uriBuilder, e);
199-
} else {
200-
throw new ClientException("Invalid URL: " + uriBuilder, e);
201-
}
197+
if (this instanceof CustomRequest) {
198+
this.getClient().getLogger().logError("Invalid custom URL: " + uriBuilder, e);
199+
} else {
200+
throw new ClientException("Invalid URL: " + uriBuilder, e);
201+
}
202202
}
203-
return null;
203+
return null;
204204
}
205205

206206
/**
@@ -455,7 +455,7 @@ protected void addSkipOption(final int value) {
455455
* @param skipToken - Token for pagination
456456
*/
457457
protected void addSkipTokenOption(@Nonnull final String skipToken) {
458-
Objects.requireNonNull(skipToken, "parameter skipToken cannot be null");
458+
Objects.requireNonNull(skipToken, "parameter skipToken cannot be null");
459459
addQueryOption(new QueryOption("$skiptoken", skipToken));
460460
}
461461

@@ -511,13 +511,13 @@ public Class<? extends T> getResponseType() {
511511
return responseClass;
512512
}
513513

514-
/**
514+
/**
515515
* Sets the max redirects
516516
*
517517
* @param maxRedirects Max redirects that a request can take
518518
*/
519519
public void setMaxRedirects(int maxRedirects) {
520-
this.maxRedirects = maxRedirects;
520+
this.maxRedirects = maxRedirects;
521521
}
522522

523523
/**
@@ -526,7 +526,7 @@ public void setMaxRedirects(int maxRedirects) {
526526
* @return Max redirects that a request can take
527527
*/
528528
public int getMaxRedirects() {
529-
return maxRedirects;
529+
return maxRedirects;
530530
}
531531

532532
/**
@@ -535,7 +535,7 @@ public int getMaxRedirects() {
535535
* @param shouldRedirect Callback called before doing a redirect
536536
*/
537537
public void setShouldRedirect(@Nonnull IShouldRedirect shouldRedirect) {
538-
Objects.requireNonNull(shouldRedirect, "parameter shouldRedirect cannot be null");
538+
Objects.requireNonNull(shouldRedirect, "parameter shouldRedirect cannot be null");
539539
this.shouldRedirect = shouldRedirect;
540540
}
541541

@@ -546,7 +546,7 @@ public void setShouldRedirect(@Nonnull IShouldRedirect shouldRedirect) {
546546
*/
547547
@Nonnull
548548
public IShouldRedirect getShouldRedirect() {
549-
return shouldRedirect;
549+
return shouldRedirect;
550550
}
551551

552552
/**
@@ -555,7 +555,7 @@ public IShouldRedirect getShouldRedirect() {
555555
* @param shouldretry The callback called before retry
556556
*/
557557
public void setShouldRetry(@Nonnull IShouldRetry shouldretry) {
558-
Objects.requireNonNull(shouldretry, "parameter shouldretry cannot be null");
558+
Objects.requireNonNull(shouldretry, "parameter shouldretry cannot be null");
559559
this.shouldRetry = shouldretry;
560560
}
561561

@@ -566,7 +566,7 @@ public void setShouldRetry(@Nonnull IShouldRetry shouldretry) {
566566
*/
567567
@Nonnull
568568
public IShouldRetry getShouldRetry() {
569-
return shouldRetry;
569+
return shouldRetry;
570570
}
571571

572572
/**
@@ -575,7 +575,7 @@ public IShouldRetry getShouldRetry() {
575575
* @param maxRetries Max retries for a request
576576
*/
577577
public void setMaxRetries(int maxRetries) {
578-
this.maxRetries = maxRetries;
578+
this.maxRetries = maxRetries;
579579
}
580580

581581
/**
@@ -584,7 +584,7 @@ public void setMaxRetries(int maxRetries) {
584584
* @return Max retries for a request
585585
*/
586586
public int getMaxRetries() {
587-
return maxRetries;
587+
return maxRetries;
588588
}
589589

590590
/**
@@ -593,7 +593,7 @@ public int getMaxRetries() {
593593
* @param delay Delay in seconds between retries
594594
*/
595595
public void setDelay(long delay) {
596-
this.delay = delay;
596+
this.delay = delay;
597597
}
598598

599599
/**
@@ -602,6 +602,6 @@ public void setDelay(long delay) {
602602
* @return Delay between retries in seconds
603603
*/
604604
public long getDelay() {
605-
return delay;
605+
return delay;
606606
}
607607
}

src/main/java/com/microsoft/graph/http/BaseStreamRequest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public List<Option> getOptions() {
197197
* @param maxRedirects Max redirects that a request can take
198198
*/
199199
public void setMaxRedirects(int maxRedirects) {
200-
baseRequest.setMaxRedirects(maxRedirects);
200+
baseRequest.setMaxRedirects(maxRedirects);
201201
}
202202

203203
/**
@@ -206,7 +206,7 @@ public void setMaxRedirects(int maxRedirects) {
206206
* @return Max redirects that a request can take
207207
*/
208208
public int getMaxRedirects() {
209-
return baseRequest.getMaxRedirects();
209+
return baseRequest.getMaxRedirects();
210210
}
211211

212212
/**
@@ -216,7 +216,7 @@ public int getMaxRedirects() {
216216
*/
217217
public void setShouldRedirect(@Nonnull final IShouldRedirect shouldRedirect) {
218218
Objects.requireNonNull(shouldRedirect, "parameter shouldRedirect cannot be null");
219-
baseRequest.setShouldRedirect(shouldRedirect);
219+
baseRequest.setShouldRedirect(shouldRedirect);
220220
}
221221

222222
/**
@@ -226,7 +226,7 @@ public void setShouldRedirect(@Nonnull final IShouldRedirect shouldRedirect) {
226226
*/
227227
@Nonnull
228228
public IShouldRedirect getShouldRedirect() {
229-
return baseRequest.getShouldRedirect();
229+
return baseRequest.getShouldRedirect();
230230
}
231231

232232
/**
@@ -236,7 +236,7 @@ public IShouldRedirect getShouldRedirect() {
236236
*/
237237
public void setShouldRetry(@Nonnull final IShouldRetry shouldretry) {
238238
Objects.requireNonNull(shouldretry, "parameter shouldretry cannot be null");
239-
baseRequest.setShouldRetry(shouldretry);
239+
baseRequest.setShouldRetry(shouldretry);
240240
}
241241

242242
/**
@@ -246,7 +246,7 @@ public void setShouldRetry(@Nonnull final IShouldRetry shouldretry) {
246246
*/
247247
@Nonnull
248248
public IShouldRetry getShouldRetry() {
249-
return baseRequest.getShouldRetry();
249+
return baseRequest.getShouldRetry();
250250
}
251251

252252
/**
@@ -255,7 +255,7 @@ public IShouldRetry getShouldRetry() {
255255
* @param maxRetries Max retries for a request
256256
*/
257257
public void setMaxRetries(int maxRetries) {
258-
baseRequest.setMaxRetries(maxRetries);
258+
baseRequest.setMaxRetries(maxRetries);
259259
}
260260

261261
/**
@@ -264,7 +264,7 @@ public void setMaxRetries(int maxRetries) {
264264
* @return Max retries for a request
265265
*/
266266
public int getMaxRetries() {
267-
return baseRequest.getMaxRetries();
267+
return baseRequest.getMaxRetries();
268268
}
269269

270270
/**
@@ -273,7 +273,7 @@ public int getMaxRetries() {
273273
* @param delay Delay in seconds between retries
274274
*/
275275
public void setDelay(long delay) {
276-
baseRequest.setDelay(delay);
276+
baseRequest.setDelay(delay);
277277
}
278278

279279
/**
@@ -282,7 +282,7 @@ public void setDelay(long delay) {
282282
* @return Delay between retries in seconds
283283
*/
284284
public long getDelay() {
285-
return baseRequest.getDelay();
285+
return baseRequest.getDelay();
286286
}
287287
/**
288288
* Sets the HTTP method and returns the current request

src/main/java/com/microsoft/graph/http/BaseWithReferenceRequest.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ public T get() throws ClientException {
105105
* @return a future with the result
106106
*/
107107
@Nonnull
108-
public java.util.concurrent.CompletableFuture<T> deleteAsync() {
109-
return sendAsync(HttpMethod.DELETE, null);
110-
}
108+
public java.util.concurrent.CompletableFuture<T> deleteAsync() {
109+
return sendAsync(HttpMethod.DELETE, null);
110+
}
111111

112112
/**
113113
* Deletes the entity
114114
*/
115-
public void delete() throws ClientException {
116-
send(HttpMethod.DELETE, null);
117-
}
115+
public void delete() throws ClientException {
116+
send(HttpMethod.DELETE, null);
117+
}
118118

119119
/**
120120
* Updates the entity and invokes the callback
@@ -123,20 +123,20 @@ public void delete() throws ClientException {
123123
* @return a future with the result
124124
*/
125125
@Nonnull
126-
public java.util.concurrent.CompletableFuture<T> patchAsync(@Nonnull final T sourceObject) {
126+
public java.util.concurrent.CompletableFuture<T> patchAsync(@Nonnull final T sourceObject) {
127127
Objects.requireNonNull(sourceObject, "parameter sourceObject cannot be null");
128-
return sendAsync(HttpMethod.PATCH, sourceObject);
129-
}
128+
return sendAsync(HttpMethod.PATCH, sourceObject);
129+
}
130130

131131
/**
132132
* Updates the entity
133133
*
134134
* @param sourceObject object to update
135-
* @return the udpated entity
135+
* @return the updated entity
136136
*/
137137
@Nullable
138-
public T patch(@Nonnull final T sourceObject) throws ClientException {
138+
public T patch(@Nonnull final T sourceObject) throws ClientException {
139139
Objects.requireNonNull(sourceObject, "parameter sourceObject cannot be null");
140-
return send(HttpMethod.PATCH, sourceObject);
141-
}
140+
return send(HttpMethod.PATCH, sourceObject);
141+
}
142142
}

0 commit comments

Comments
 (0)