Hi
Java has its own formatting profile.
Go to Preferences > Java > Code Style > Formatter and create your own profile.
Then Edit the your profile and change Tab policy "Tab policy" to Spaces only."Spaces only".
![Configure Spaces only][1]
[1]: https://answers.axonivy.com/upfiles/Screenshot_20181024_115634.png