Skip to content

WriteOptions.setTtl(Duration) 0-Value assertion allows >= 0 instead of >0 Duration objects #1248

@thst71

Description

@thst71

The spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/cql/WriteOptions.java#setTtl(Duration) method has an assertion on duration.isNegative, but it must assert for >0 not >=0

The setTtl(long) method is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions