Skip to content

Commit 3c15298

Browse files
committed
#1802 Reformatted with mvn spotless:apply.
1 parent 0bb4b96 commit 3c15298

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

util/src/main/java/io/kubernetes/client/util/ClientBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public static ClientBuilder kubeconfig(KubeConfig config) throws IOException {
278278

279279
String server = config.getServer();
280280
if (server == null) {
281-
throw new IllegalArgumentException("No server in kubeconfig");
281+
throw new IllegalArgumentException("No server in kubeconfig");
282282
}
283283
if (!server.contains("://")) {
284284
if (server.contains(":443")) {

util/src/test/java/io/kubernetes/client/util/ClientBuilderTest.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import java.io.IOException;
3333
import java.nio.file.Files;
3434
import java.nio.file.Paths;
35-
3635
import org.junit.Test;
3736

3837
/** Tests for the ConfigBuilder helper class */
@@ -304,10 +303,13 @@ public void testSettingPassphraseForKubeConfigShouldWork() throws IOException {
304303

305304
@Test
306305
public void testDetectsServerNotSet() {
307-
assertThrows("No server in kubeconfig", IllegalArgumentException.class, () -> {
308-
KubeConfig kubeConfigWithoutServer = mock(KubeConfig.class);
306+
assertThrows(
307+
"No server in kubeconfig",
308+
IllegalArgumentException.class,
309+
() -> {
310+
KubeConfig kubeConfigWithoutServer = mock(KubeConfig.class);
309311

310-
ClientBuilder.kubeconfig(kubeConfigWithoutServer);
311-
});
312+
ClientBuilder.kubeconfig(kubeConfigWithoutServer);
313+
});
312314
}
313315
}

0 commit comments

Comments
 (0)