Skip to content

Commit 8de9e40

Browse files
committed
fix spelling error
1 parent f3c12fc commit 8de9e40

File tree

1 file changed

+8
-6
lines changed
  • integration-tests/src/test/java/oracle/kubernetes/operator/utils

1 file changed

+8
-6
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/utils/ExecCommand.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public static ExecResult exec(String command, boolean isRedirectToOut) throws Ex
2727
return exec(command, isRedirectToOut, null);
2828
}
2929

30-
public static ExecResult exec(String command, boolean isRedirectToOut, Map<String,String> additionalEnvMap)
30+
public static ExecResult exec(
31+
String command, boolean isRedirectToOut, Map<String, String> additionalEnvMap)
3132
throws Exception {
3233

3334
Process p = null;
@@ -77,16 +78,17 @@ public static ExecResult exec(String command, boolean isRedirectToOut, Map<Strin
7778

7879
/**
7980
* Generate a string array of name=value items, one for each env map entry.
81+
*
8082
* @return
8183
*/
82-
private static String[] generateNameValueArrayFromMap(Map<String, String> map) {
84+
private static String[] generateNameValueArrayFromMap(Map<String, String> map) {
8385
int mapSize = map.size();
84-
String[] strArrary = new String[mapSize];
86+
String[] strArray = new String[mapSize];
8587
int i = 0;
86-
for (Map.Entry<String,String> entry : map.entrySet()) {
87-
strArrary[i++] = entry.getKey() + "=" + entry.getValue();
88+
for (Map.Entry<String, String> entry : map.entrySet()) {
89+
strArray[i++] = entry.getKey() + "=" + entry.getValue();
8890
}
89-
return strArrary;
91+
return strArray;
9092
}
9193

9294
private static String read(InputStream is) throws Exception {

0 commit comments

Comments
 (0)