Skip to content

Commit 3ec85ea

Browse files
committed
Added static modifiers for all methods
I changed all method modifiers from instance method to class method based on the reviewer's proposal. And Fixed Code format issue.
1 parent 212044f commit 3ec85ea

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/src/main/java/io/kubernetes/client/examples/ExpandedExample.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ public class ExpandedExample {
5757

5858
private static final Logger LOGGER = LoggerFactory.getLogger(ExpandedExample.class);
5959

60-
/**
61-
* Static Initializer
62-
*/
60+
/** Static Initializer */
6361
static {
6462
// ApiClient client = Config.defaultClient();
6563
// If you want to use specific k8s cluster and access token, please use following?
@@ -75,7 +73,6 @@ public class ExpandedExample {
7573
*/
7674
public static void main(String[] args) {
7775
try {
78-
7976
// ScaleUp/ScaleDown the Deployment pod
8077
// Please change the name of Deployment?
8178
System.out.println("----- Scale Deployment Start -----");
@@ -106,7 +103,6 @@ public static void main(String[] args) {
106103
String firstPodName = getPods().get(0);
107104
printLog(DEFAULT_NAME_SPACE, firstPodName);
108105
System.out.println("----- Print Log of Specific Pod End -----");
109-
110106
} catch (ApiException ex) {
111107
LOGGER.warn("Exception had occured ", ex);
112108
}

0 commit comments

Comments
 (0)