-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update annotations so they don't require a @get:
prefix in Kotlin
#28459
Comments
Just as additional information as I had a cursory look already. |
This issue needs a decision from the team responsible for that area. They have been informed. Response time may vary. Another question that might be interesting on this topic is: How will these annotations work with Java Records? |
Note that |
If you read it as private val _a2: Property<String> = objects.property()
@get:Input
val a2: Provider<String> get() = _a2 it makes more sense. Besides that as you have a getter, you could actually annotate the getter directly instead of the property already like private val _a2: Property<String> = objects.property()
val a2: Provider<String> @Input get() = _a2 |
We should do this. Not sure when. |
Current Behaviour
get:
doesn't prevent invalid code, for example with@Input
functions that don't match the naming schemegetFoo()
Expected Behaviour
@get:
prefix when writing annotations.Note that requiring prefixing annotations with
get:
doesn't prevent invalid code, for example with@Input
functions that don't match the naming schemegetFoo()
Context
The text was updated successfully, but these errors were encountered: