Are there plans to support the short syntax for getters and setters in Java classes, as it is already supported for Kotlin properties?
Kotlin with JavaFX:
translate.setX(centerPoint.getX() - targetCoordinate.getX()) translate.setY(centerPoint.getY() - targetCoordinate.getY()) scale.setX(targetZoom.getX()) scale.setY(targetZoom.getY()) scale.setPivotX(targetCoordinate.getX()) scale.setPivotY(targetCoordinate.getY())
Groovy with JavaFX:
translate.x = centerPoint.x - targetCoordinate.x translate.y = centerPoint.y - targetCoordinate.y scale.x = targetZoom.x scale.y = targetZoom.y scale.pivotX = targetCoordinate.x scale.pivotY = targetCoordinate.y
I started to convert some Groovy code to Kotlin and converting the getters and setters to old Java syntax was tedious. Another point was changing code with integers to doubles, since Kotlin adheres strongly to the method's argument types; which I find ok, if this prevents centain sources for coding errors.