Skip to content

Commit 90779bb

Browse files
DATAMONGO-2069 - Replace com.mysema.commons.lang.Assert with o.s.util.Assert.
1 parent 892cc2e commit 90779bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/messaging/CursorReadingTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
import org.springframework.data.mongodb.core.messaging.Message.MessageProperties;
2525
import org.springframework.data.mongodb.core.messaging.SubscriptionRequest.RequestOptions;
2626
import org.springframework.lang.Nullable;
27+
import org.springframework.util.Assert;
2728
import org.springframework.util.ErrorHandler;
2829

2930
import com.mongodb.client.MongoCursor;
30-
import com.mysema.commons.lang.Assert;
3131

3232
/**
3333
* @author Christoph Strobl
@@ -202,7 +202,7 @@ public State getState() {
202202
public boolean awaitStart(Duration timeout) throws InterruptedException {
203203

204204
Assert.notNull(timeout, "Timeout must not be null!");
205-
Assert.isFalse(timeout.isNegative(), "Timeout must not be negative!");
205+
Assert.isTrue(!timeout.isNegative(), "Timeout must not be negative!");
206206

207207
return awaitStart.await(timeout.toNanos(), TimeUnit.NANOSECONDS);
208208
}

0 commit comments

Comments
 (0)