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

Fixes for resolver generators #754

Merged
merged 4 commits into from
Jan 21, 2017
Merged

Fixes for resolver generators #754

merged 4 commits into from
Jan 21, 2017

Conversation

geralt-encore
Copy link
Collaborator

Fix for this #749 issue.
And also I discovered error when column annotation with ignoreNull = true applied on getter.
Also improved some code which was using concatenation instead of formatting.

@codecov-io
Copy link

codecov-io commented Jan 21, 2017

Current coverage is 96.05% (diff: 100%)

Merging #754 into master will not change coverage

@@             master       #754   diff @@
==========================================
  Files            87         87          
  Lines          2459       2459          
  Methods           0          0          
  Messages          0          0          
  Branches        329        329          
==========================================
  Hits           2362       2362          
  Misses           68         68          
  Partials         29         29          

Powered by Codecov. Last update d7528e7...fd5f183

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.

Thanks!

@@ -116,12 +116,12 @@ private MethodSpec createMapToContentValuesMethodSpec(@NotNull final StorIOConte
for (final StorIOContentResolverColumnMeta columnMeta : storIOContentResolverTypeMeta.columns.values()) {
final boolean ignoreNull = columnMeta.storIOColumn.ignoreNull();
if (ignoreNull) {
builder.beginControlFlow("if($L != null)", "object." + columnMeta.elementName);
builder.beginControlFlow("if (object.$L != null)", columnMeta.elementName + (columnMeta.isMethod() ? "()" : ""));
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@nikitin-da nikitin-da merged commit 5033788 into pushtorefresh:master Jan 21, 2017
@geralt-encore geralt-encore deleted the missing-space branch January 22, 2017 14:39
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.

3 participants