Skip to content

Commit d44ceb8

Browse files
authored
Merge pull request #1208 from sarveshkaushal/k-clean
Code clean up
2 parents fb27f2e + a177c6a commit d44ceb8

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public InputStream getStandardOutputStream() throws IOException {
254254
return handler.getInputStream(1);
255255
}
256256

257-
public InputStream getErrorStream() throws IOException {
257+
public InputStream getErrorStream() {
258258
return handler.getInputStream(2);
259259
}
260260

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.ArrayList;
1717

1818
public interface ConfigPersister {
19-
public void save(
19+
void save(
2020
ArrayList<Object> contexts,
2121
ArrayList<Object> clusters,
2222
ArrayList<Object> users,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class WebSocketStreamHandler implements WebSockets.SocketListener, Closea
4949

5050
private State state = State.UNINITIALIZED;
5151

52-
private static enum State {
52+
private enum State {
5353
UNINITIALIZED,
5454
OPEN,
5555
CLOSED

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,31 +45,31 @@ public class WebSockets {
4545
/** A simple interface for a listener on a web socket */
4646
public interface SocketListener {
4747
/** Called when the socket is opened */
48-
public void open(String protocol, WebSocket socket);
48+
void open(String protocol, WebSocket socket);
4949

5050
/**
5151
* Called when a binary media type message is received
5252
*
5353
* @param in The input stream containing the binary data
5454
*/
55-
public void bytesMessage(InputStream in);
55+
void bytesMessage(InputStream in);
5656

5757
/**
5858
* Called when a text media type message is received
5959
*
6060
* @param in The character stream containing the message
6161
*/
62-
public void textMessage(Reader in);
62+
void textMessage(Reader in);
6363

6464
/**
6565
* Called when there has been a failure
6666
*
6767
* @param t the exception associated with the failure.
6868
*/
69-
public void failure(Throwable t);
69+
void failure(Throwable t);
7070

7171
/** Called when the stream is closed. */
72-
public void close();
72+
void close();
7373
}
7474

7575
/**

util/src/main/java/io/kubernetes/client/util/authenticators/Authenticator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ public interface Authenticator {
2323
* Return the name of this authenticator, this should be the value that is also in a kubeconfig
2424
* file.
2525
*/
26-
public String getName();
26+
String getName();
2727

2828
/**
2929
* Get a token from this authenticator.
3030
*
3131
* @param config The configuration information for this authenticator
3232
* @return The new token, null of no such token can be found/generated
3333
*/
34-
public String getToken(Map<String, Object> config);
34+
String getToken(Map<String, Object> config);
3535

3636
/** Determine if this config is expired */
37-
public boolean isExpired(Map<String, Object> config);
37+
boolean isExpired(Map<String, Object> config);
3838

3939
/** Refresh an expired token with a new fresh one. */
40-
public Map<String, Object> refresh(Map<String, Object> config);
40+
Map<String, Object> refresh(Map<String, Object> config);
4141
}

util/src/main/java/io/kubernetes/client/util/taints/Taints.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.Iterator;
1919

2020
public class Taints {
21-
public static enum Effect {
21+
public enum Effect {
2222
NO_SCHEDULE {
2323
public String toString() {
2424
return "NoSchedule";

0 commit comments

Comments
 (0)