File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/messaging Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 24
24
import org .springframework .data .mongodb .core .messaging .Message .MessageProperties ;
25
25
import org .springframework .data .mongodb .core .messaging .SubscriptionRequest .RequestOptions ;
26
26
import org .springframework .lang .Nullable ;
27
+ import org .springframework .util .Assert ;
27
28
import org .springframework .util .ErrorHandler ;
28
29
29
30
import com .mongodb .client .MongoCursor ;
30
- import com .mysema .commons .lang .Assert ;
31
31
32
32
/**
33
33
* @author Christoph Strobl
@@ -202,7 +202,7 @@ public State getState() {
202
202
public boolean awaitStart (Duration timeout ) throws InterruptedException {
203
203
204
204
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!" );
206
206
207
207
return awaitStart .await (timeout .toNanos (), TimeUnit .NANOSECONDS );
208
208
}
You can’t perform that action at this time.
0 commit comments