Skip to content
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

Support for Kotlin properties #776

Merged
merged 3 commits into from
Apr 18, 2017
Merged

Support for Kotlin properties #776

merged 3 commits into from
Apr 18, 2017

Conversation

geralt-encore
Copy link
Collaborator

With this PR it is possible to annotate Kotlin properties directly utilising getters and setter instead of direct access to fields.
Also, it resolves #735 since there is no need anymore to map fields to constructor parameters.

@codecov-io
Copy link

Codecov Report

Merging #776 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #776   +/-   ##
=======================================
  Coverage   96.85%   96.85%           
=======================================
  Files          87       87           
  Lines        2638     2638           
  Branches      296      296           
=======================================
  Hits         2555     2555           
  Misses         50       50           
  Partials       33       33

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da7a1f5...4e36e74. Read the comment docs.

if ((methodName == String.format("get%s", name.capitalize())
|| methodName == String.format("is%s", name.capitalize())
// Special case for properties which name starts with is.
// Kotlin will generate getter with the same name instead of isIsProperty.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😐

Copy link
Collaborator

@nikitin-da nikitin-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍

@geralt-encore geralt-encore merged commit 6d92d70 into pushtorefresh:master Apr 18, 2017
@geralt-encore geralt-encore deleted the kotlin-properties branch April 18, 2017 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto generated GetResolver has constructor with wrong parameter order in Kotlin
3 participants