Skip to content

Conversation

@orklar
Copy link

@orklar orklar commented Dec 18, 2017

NoSQL.with(context).using(SampleBean.class)
    .bucketId("bucket")
    .entityId("entityId")
    .retrieve(new RetrievalCallback<SampleBean>() {
    public void retrieveResults(List<NoSQLEntity<SampleBean>> entities) {
        // Display results or something 
        SampleBean firstBean = entities.get(0).getData(); // always check length of a list first...
    }   
});
In this code the writter forgot to close the "<" and this caused errors when the code is used. Hereby the error is corrected from the readme.

```java
NoSQL.with(context).using(SampleBean.class)
    .bucketId("bucket")
    .entityId("entityId")
    .retrieve(new RetrievalCallback<SampleBean>() {
    public void retrieveResults(List<NoSQLEntity<SampleBean>> entities) {
        // Display results or something 
        SampleBean firstBean = entities.get(0).getData(); // always check length of a list first...
    }   
});
In this code the writter forgot to close the "<" and this caused errors when the code is used. Hereby the error is corrected from the readme.
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.

1 participant