[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 <liangbowen@gf.com.cn> Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
parent
f22c73f9db
commit
c5238535f6
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user