Skip to content

Commit e4535fa

Browse files
committed
Reformat to match spotless rules.
1 parent 4141ea4 commit e4535fa

File tree

607 files changed

+249133
-155825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

607 files changed

+249133
-155825
lines changed

e2e/src/test/groovy/io/kubernetes/client/e2e/util/ModelMapperTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ package io.kubernetes.client.e2e.util
1515
import io.kubernetes.client.Discovery
1616
import io.kubernetes.client.apimachinery.GroupVersionKind
1717
import io.kubernetes.client.apimachinery.GroupVersionResource
18+
import io.kubernetes.client.openapi.models.V1CustomResourceDefinition
1819
import io.kubernetes.client.openapi.models.V1Deployment
1920
import io.kubernetes.client.openapi.models.V1Pod
20-
import io.kubernetes.client.openapi.models.V1CustomResourceDefinition
2121
import io.kubernetes.client.util.ClientBuilder
2222
import io.kubernetes.client.util.ModelMapper
2323
import spock.lang.Specification

extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlRollout.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ public List<History> execute() throws KubectlException {
8080
V1DaemonSet daemonSet = api.readNamespacedDaemonSet(name, namespace, null);
8181
daemonSetViewHistory(daemonSet, api);
8282
} else if (apiTypeClass.equals(V1StatefulSet.class)) {
83-
V1StatefulSet statefulSet =
84-
api.readNamespacedStatefulSet(name, namespace, null);
83+
V1StatefulSet statefulSet = api.readNamespacedStatefulSet(name, namespace, null);
8584
statefulSetViewHistory(statefulSet, api);
8685
} else {
8786
throw new KubectlException("Unsupported class for rollout history: " + apiTypeClass);

extended/src/test/java/io/kubernetes/client/extended/network/EndpointsLoadBalancerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import static org.junit.Assert.*;
1616

1717
import io.kubernetes.client.extended.network.exception.NoAvailableAddressException;
18-
import io.kubernetes.client.openapi.models.V1EndpointAddress;
1918
import io.kubernetes.client.openapi.models.CoreV1EndpointPort;
19+
import io.kubernetes.client.openapi.models.V1EndpointAddress;
2020
import io.kubernetes.client.openapi.models.V1EndpointSubset;
2121
import io.kubernetes.client.openapi.models.V1Endpoints;
2222
import java.util.Arrays;

extended/src/test/java/io/kubernetes/client/extended/network/RoundRobinEndpointsLoadBalancerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import static org.junit.Assert.*;
1616

1717
import io.kubernetes.client.extended.network.exception.NoAvailableAddressException;
18-
import io.kubernetes.client.openapi.models.V1EndpointAddress;
1918
import io.kubernetes.client.openapi.models.CoreV1EndpointPort;
19+
import io.kubernetes.client.openapi.models.V1EndpointAddress;
2020
import io.kubernetes.client.openapi.models.V1EndpointSubset;
2121
import io.kubernetes.client.openapi.models.V1Endpoints;
2222
import java.util.ArrayList;
Lines changed: 47 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,59 @@
11
/*
2-
* Kubernetes
3-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4-
*
5-
* The version of the OpenAPI document: release-1.22
6-
*
7-
*
8-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9-
* https://openapi-generator.tech
10-
* Do not edit the class manually.
11-
*/
12-
13-
2+
Copyright 2021 The Kubernetes Authors.
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
*/
1413
package io.kubernetes.client.openapi;
1514

16-
import java.io.IOException;
17-
18-
import java.util.Map;
1915
import java.util.List;
16+
import java.util.Map;
2017

2118
/**
2219
* Callback for asynchronous API call.
2320
*
2421
* @param <T> The return type
2522
*/
2623
public interface ApiCallback<T> {
27-
/**
28-
* This is called when the API call fails.
29-
*
30-
* @param e The exception causing the failure
31-
* @param statusCode Status code of the response if available, otherwise it would be 0
32-
* @param responseHeaders Headers of the response if available, otherwise it would be null
33-
*/
34-
void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders);
35-
36-
/**
37-
* This is called when the API call succeeded.
38-
*
39-
* @param result The result deserialized from response
40-
* @param statusCode Status code of the response
41-
* @param responseHeaders Headers of the response
42-
*/
43-
void onSuccess(T result, int statusCode, Map<String, List<String>> responseHeaders);
44-
45-
/**
46-
* This is called when the API upload processing.
47-
*
48-
* @param bytesWritten bytes Written
49-
* @param contentLength content length of request body
50-
* @param done write end
51-
*/
52-
void onUploadProgress(long bytesWritten, long contentLength, boolean done);
53-
54-
/**
55-
* This is called when the API downlond processing.
56-
*
57-
* @param bytesRead bytes Read
58-
* @param contentLength content lenngth of the response
59-
* @param done Read end
60-
*/
61-
void onDownloadProgress(long bytesRead, long contentLength, boolean done);
24+
/**
25+
* This is called when the API call fails.
26+
*
27+
* @param e The exception causing the failure
28+
* @param statusCode Status code of the response if available, otherwise it would be 0
29+
* @param responseHeaders Headers of the response if available, otherwise it would be null
30+
*/
31+
void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders);
32+
33+
/**
34+
* This is called when the API call succeeded.
35+
*
36+
* @param result The result deserialized from response
37+
* @param statusCode Status code of the response
38+
* @param responseHeaders Headers of the response
39+
*/
40+
void onSuccess(T result, int statusCode, Map<String, List<String>> responseHeaders);
41+
42+
/**
43+
* This is called when the API upload processing.
44+
*
45+
* @param bytesWritten bytes Written
46+
* @param contentLength content length of request body
47+
* @param done write end
48+
*/
49+
void onUploadProgress(long bytesWritten, long contentLength, boolean done);
50+
51+
/**
52+
* This is called when the API downlond processing.
53+
*
54+
* @param bytesRead bytes Read
55+
* @param contentLength content lenngth of the response
56+
* @param done Read end
57+
*/
58+
void onDownloadProgress(long bytesRead, long contentLength, boolean done);
6259
}

0 commit comments

Comments
 (0)