This is an automated email from the ASF dual-hosted git repository.

chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/master by this push:
     new c5238535f [KYUUBI #4974] [MINOR] Eliminate rawtypes compilation 
warning in KyuubiBeeLine
c5238535f is described below

commit c5238535f6c8d70ac97efc4c1d5dee93765fef92
Author: liangbowen <[email protected]>
AuthorDate: Sun Jun 18 14:18:16 2023 +0800

    [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 <[email protected]>
    Signed-off-by: Cheng Pan <[email protected]>
---
 .../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)) {

Reply via email to