Skip to content
Browse files

Fix syntax error in the ContentResolverTypeMapping builder

The <Tweet> type mapping is on the wrong side of the builder() method, and caused some confusion / frustration to a friend of a friend of a friend of mine.
1 parent 81e0785 commit a31740c2819fa9ef0df3add8e403ddfc00cee1c5 @roughike roughike committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/StorIOContentResolver.md
View
2 docs/StorIOContentResolver.md
@@ -235,7 +235,7 @@ Several things about `Delete` Operation:
```java
StorIOContentResolver storIOContentResolver = DefaultStorIOContentResolver.builder()
.contentResolver(yourContentResolver)
- .addTypeMapping(Tweet.class, ContentResolverTypeMapping.builder<Tweet>()
+ .addTypeMapping(Tweet.class, ContentResolverTypeMapping.<Tweet>builder()
.putResolver(new TweetPutResolver()) // object that knows how to perform Put Operation (insert or update)
.getResolver(new TweetGetResolver()) // object that knows how to perform Get Operation
.deleteResolver(new TweetDeleteResolver()) // object that knows how to perform Delete Operation

0 comments on commit a31740c

Please sign in to comment.
Something went wrong with that request. Please try again.