From c5238535f6c8d70ac97efc4c1d5dee93765fef92 Mon Sep 17 00:00:00 2001 From: liangbowen Date: Sun, 18 Jun 2023 14:18:16 +0800 Subject: [PATCH] [KYUUBI #4974] [MINOR] Eliminate rawtypes compilation warning in KyuubiBeeLine ### _Why are the changes needed?_ - Eliminate rawtypes compilation warning in `KyuubiBeeLine.java` by adding `SuppressWarnings` annotation of rule `rawtypes` to BeelineParser implementation ``` Warning: [Warn] /home/runner/work/kyuubi/kyuubi/kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiBeeLine.java:148:53: [rawtypes] found raw type: ListIterator ``` ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request Closes #4974 from bowenliang123/beeline-rawtypes. Closes #4974 994a2d3e0 [liangbowen] Fix rawtypes compilation warning in KyuubiBeeLine Authored-by: liangbowen Signed-off-by: Cheng Pan --- .../src/main/java/org/apache/hive/beeline/KyuubiBeeLine.java | 1 + 1 file changed, 1 insertion(+) diff --git a/kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiBeeLine.java b/kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiBeeLine.java index 14e7de947..50a0c133a 100644 --- a/kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiBeeLine.java +++ b/kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiBeeLine.java @@ -145,6 +145,7 @@ public class KyuubiBeeLine extends BeeLine { beelineParser = new BeelineParser() { + @SuppressWarnings("rawtypes") @Override protected void processOption(String arg, ListIterator iter) throws ParseException { if (PYTHON_MODE_PREFIX.equals(arg)) {