Fixed license formatting in main.java

Please alwayys run `gradlew licenseFormat` before commiting.