Skip to content

@Nullable / @NonNull #73

@BenoitDuffez

Description

@BenoitDuffez

I use these annotations a LOT and I don't think you use them. Would you consider adding them?

For example, Box#put supports null collections but doesn't say so:

public void put(Collection<T> entities) {
    if(entities != null && !entities.isEmpty()) { // yay!
        Cursor cursor = getWriter();
        try {
            Iterator i = entities.iterator();
            while(i.hasNext()) {
                cursor.put(i.next());
            }
           commitWriter(cursor);
        } finally {
           releaseWriter(cursor);
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions