[SPARK-36780][BUILD] Make `dev/mima` runs on Java 17
[SPARK-36780][BUILD] Make `dev/mima` runs on Java 17

### What changes were proposed in this pull request?

Java 17 has been officially released. This PR makes `dev/mima` runs on Java 17.

### Why are the changes needed?

To make tests pass on Java 17.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manual test.

Closes #34022 from RabbidHY/SPARK-36780.

Lead-authored-by: Yang He <ab137b5d2701506d4dec5f3c34785618a5f30afa@gmail.com>
Co-authored-by: Dongjoon Hyun <6ff48b33cbb828151035af58a92f18a39f1d1036@apache.org>
Signed-off-by: Dongjoon Hyun <6ff48b33cbb828151035af58a92f18a39f1d1036@apache.org>

hvanhovell/spark,srowen/spark,HyukjinKwon/spark,mahak/spark,HyukjinKwon/spark,HyukjinKwon/spark,vinodkc/spark,hvanhovell/spark,nchammas/spark,rednaxelafx/apache-spark,dongjoon-hyun/spark,shaneknapp/spark,witgo/spark,apache/spark,mahak/spark,JoshRosen/spark,nchammas/spark,taroplus/spark,JoshRosen/spark,shaneknapp/spark,xuanyuanking/spark,JoshRosen/spark,gengliangwang/spark,ueshin/apache-spark,rednaxelafx/apache-spark,ueshin/apache-spark,gengliangwang/spark,WeichenXu123/spark,srowen/spark,witgo/spark,xuanyuanking/spark,holdenk/spark,vinodkc/spark,zzcclp/spark,nchammas/spark,apache/spark,nchammas/spark,nchammas/spark,taroplus/spark,rednaxelafx/apache-spark,ueshin/apache-spark,HyukjinKwon/spark,xuanyuanking/spark,nchammas/spark,mahak/spark,dongjoon-hyun/spark,zzcclp/spark,apache/spark,cloud-fan/spark,dongjoon-hyun/spark,taroplus/spark,zero323/spark,dongjoon-hyun/spark,zero323/spark,hvanhovell/spark,WeichenXu123/spark,hvanhovell/spark,hvanhovell/spark,cloud-fan/spark,ueshin/apache-spark,wangyum/spark,zzcclp/spark,JoshRosen/spark,rednaxelafx/apache-spark,zzcclp/spark,shaneknapp/spark,cloud-fan/spark,witgo/spark,holdenk/spark,hvanhovell/spark,shaneknapp/spark,wangyum/spark,dongjoon-hyun/spark,taroplus/spark,zzcclp/spark,xuanyuanking/spark,JoshRosen/spark,cloud-fan/spark,taroplus/spark,ueshin/apache-spark,zero323/spark,rednaxelafx/apache-spark,wangyum/spark,WeichenXu123/spark,witgo/spark,ueshin/apache-spark,gengliangwang/spark,rednaxelafx/apache-spark,holdenk/spark,holdenk/spark,zero323/spark,dongjoon-hyun/spark,xuanyuanking/spark,holdenk/spark,mahak/spark,shaneknapp/spark,cloud-fan/spark,srowen/spark,vinodkc/spark,mahak/spark,xuanyuanking/spark,wangyum/spark,ueshin/apache-spark,zzcclp/spark,witgo/spark,shaneknapp/spark,zzcclp/spark,nchammas/spark,zero323/spark,WeichenXu123/spark,HyukjinKwon/spark,HyukjinKwon/spark,witgo/spark,cloud-fan/spark,WeichenXu123/spark,xuanyuanking/spark,apache/spark,srowen/spark,JoshRosen/spark,shaneknapp/spark,HyukjinKwon/spark,srowen/spark,taroplus/spark,dongjoon-hyun/spark,holdenk/spark,mahak/spark,WeichenXu123/spark,zero323/spark,gengliangwang/spark,gengliangwang/spark,taroplus/spark,apache/spark,srowen/spark,gengliangwang/spark,WeichenXu123/spark,gengliangwang/spark,wangyum/spark,JoshRosen/spark,vinodkc/spark,witgo/spark,apache/spark,wangyum/spark,apache/spark,holdenk/spark,zero323/spark,vinodkc/spark,rednaxelafx/apache-spark,vinodkc/spark,cloud-fan/spark,srowen/spark,wangyum/spark,hvanhovell/spark,mahak/spark,vinodkc/spark