Skip to content

Commit 175b534

Browse files
gabry-labpan3793
authored andcommitted
[KYUUBI #7215] Make all BatchUtils variables to be final
Closes #7215 from gabry-lab/batch-util-var. Closes #7215 1408173 [gabrywu] make all BatchUtils variables to be final Authored-by: gabrywu <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
1 parent b5d7f58 commit 175b534

File tree

1 file changed

+8
-8
lines changed
  • kyuubi-rest-client/src/main/java/org/apache/kyuubi/client/util

1 file changed

+8
-8
lines changed

kyuubi-rest-client/src/main/java/org/apache/kyuubi/client/util/BatchUtils.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,26 @@
2424

2525
public final class BatchUtils {
2626
/** The batch has not been submitted to resource manager yet. */
27-
public static String PENDING_STATE = "PENDING";
27+
public static final String PENDING_STATE = "PENDING";
2828

2929
/** The batch has been submitted to resource manager and is running. */
30-
public static String RUNNING_STATE = "RUNNING";
30+
public static final String RUNNING_STATE = "RUNNING";
3131

3232
/** The batch has been finished successfully. */
33-
public static String FINISHED_STATE = "FINISHED";
33+
public static final String FINISHED_STATE = "FINISHED";
3434

3535
/** The batch met some issue and failed. */
36-
public static String ERROR_STATE = "ERROR";
36+
public static final String ERROR_STATE = "ERROR";
3737

3838
/** The batch was closed by `DELETE /batches/${batchId}` api. */
39-
public static String CANCELED_STATE = "CANCELED";
39+
public static final String CANCELED_STATE = "CANCELED";
4040

41-
public static List<String> terminalBatchStates =
41+
public static final List<String> terminalBatchStates =
4242
Arrays.asList(FINISHED_STATE, ERROR_STATE, CANCELED_STATE);
4343

44-
public static String KYUUBI_BATCH_ID_KEY = "kyuubi.batch.id";
44+
public static final String KYUUBI_BATCH_ID_KEY = "kyuubi.batch.id";
4545

46-
public static String KYUUBI_BATCH_DUPLICATED_KEY = "kyuubi.batch.duplicated";
46+
public static final String KYUUBI_BATCH_DUPLICATED_KEY = "kyuubi.batch.duplicated";
4747

4848
public static boolean isPendingState(String state) {
4949
return PENDING_STATE.equalsIgnoreCase(state);

0 commit comments

Comments
 (0)