@@ -77,10 +77,10 @@ public QuerydslLdapPredicateExecutor(Class<T> entityType, ProjectionFactory proj
77
77
LdapOperations ldapOperations ,
78
78
MappingContext <? extends PersistentEntity <?, ?>, ? extends PersistentProperty <?>> mappingContext ) {
79
79
80
- Assert .notNull (entityType , "Entity type must not be null! " );
81
- Assert .notNull (projectionFactory , "ProjectionFactory must not be null! " );
82
- Assert .notNull (ldapOperations , "LdapOperations must not be null! " );
83
- Assert .notNull (mappingContext , "MappingContext must not be null! " );
80
+ Assert .notNull (entityType , "Entity type must not be null" );
81
+ Assert .notNull (projectionFactory , "ProjectionFactory must not be null" );
82
+ Assert .notNull (ldapOperations , "LdapOperations must not be null" );
83
+ Assert .notNull (mappingContext , "MappingContext must not be null" );
84
84
85
85
this .entityInformation = new LdapEntityInformation <>(entityType , ldapOperations .getObjectDirectoryMapper ());
86
86
this .ldapOperations = ldapOperations ;
@@ -100,10 +100,10 @@ public QuerydslLdapPredicateExecutor(EntityInformation<T, ?> entityInformation,
100
100
LdapOperations ldapOperations ,
101
101
MappingContext <? extends PersistentEntity <?, ?>, ? extends PersistentProperty <?>> mappingContext ) {
102
102
103
- Assert .notNull (entityInformation , "EntityInformation must not be null! " );
104
- Assert .notNull (projectionFactory , "ProjectionFactory must not be null! " );
105
- Assert .notNull (ldapOperations , "LdapOperations must not be null! " );
106
- Assert .notNull (mappingContext , "MappingContext must not be null! " );
103
+ Assert .notNull (entityInformation , "EntityInformation must not be null" );
104
+ Assert .notNull (projectionFactory , "ProjectionFactory must not be null" );
105
+ Assert .notNull (ldapOperations , "LdapOperations must not be null" );
106
+ Assert .notNull (mappingContext , "MappingContext must not be null" );
107
107
108
108
this .entityInformation = entityInformation ;
109
109
this .ldapOperations = ldapOperations ;
@@ -132,7 +132,7 @@ public boolean exists(Predicate predicate) {
132
132
133
133
public List <T > findAll (Predicate predicate , Sort sort ) {
134
134
135
- Assert .notNull (sort , "Pageable must not be null! " );
135
+ Assert .notNull (sort , "Pageable must not be null" );
136
136
137
137
if (sort .isUnsorted ()) {
138
138
return findAll (predicate );
@@ -163,7 +163,7 @@ public List<T> findAll(Predicate predicate, OrderSpecifier<?>... orders) {
163
163
@ Override
164
164
public Page <T > findAll (Predicate predicate , Pageable pageable ) {
165
165
166
- Assert .notNull (pageable , "Pageable must not be null! " );
166
+ Assert .notNull (pageable , "Pageable must not be null" );
167
167
168
168
if (pageable .isUnpaged ()) {
169
169
return PageableExecutionUtils .getPage (findAll (predicate ), pageable , () -> count (predicate ));
@@ -183,7 +183,7 @@ public Page<T> findAll(Predicate predicate, Pageable pageable) {
183
183
public <S extends T , R > R findBy (Predicate predicate ,
184
184
Function <FluentQuery .FetchableFluentQuery <S >, R > queryFunction ) {
185
185
186
- Assert .notNull (queryFunction , "Query function must not be null! " );
186
+ Assert .notNull (queryFunction , "Query function must not be null" );
187
187
188
188
return queryFunction .apply (new FluentQuerydsl <>(predicate , (Class <S >) entityInformation .getJavaType ()));
189
189
}
@@ -196,7 +196,7 @@ private QuerydslLdapQuery<T> queryFor(Predicate predicate) {
196
196
197
197
private QuerydslLdapQuery <T > queryFor (Predicate predicate , Consumer <LdapQueryBuilder > queryBuilderConsumer ) {
198
198
199
- Assert .notNull (predicate , "Predicate must not be null! " );
199
+ Assert .notNull (predicate , "Predicate must not be null" );
200
200
201
201
return new QuerydslLdapQuery <>(ldapOperations , entityInformation .getJavaType (), queryBuilderConsumer )
202
202
.where (predicate );
@@ -234,15 +234,15 @@ public FetchableFluentQuery<R> sortBy(Sort sort) {
234
234
@ Override
235
235
public <R1 > FetchableFluentQuery <R1 > as (Class <R1 > resultType ) {
236
236
237
- Assert .notNull (projection , "Projection target type must not be null! " );
237
+ Assert .notNull (projection , "Projection target type must not be null" );
238
238
239
239
return new FluentQuerydsl <>(predicate , sort , resultType , projection );
240
240
}
241
241
242
242
@ Override
243
243
public FetchableFluentQuery <R > project (Collection <String > properties ) {
244
244
245
- Assert .notNull (properties , "Projection properties must not be null! " );
245
+ Assert .notNull (properties , "Projection properties must not be null" );
246
246
247
247
return new FluentQuerydsl <>(predicate , sort , resultType , new ArrayList <>(properties ));
248
248
}
@@ -287,7 +287,7 @@ public List<R> all() {
287
287
@ Override
288
288
public Page <R > page (Pageable pageable ) {
289
289
290
- Assert .notNull (pageable , "Pageable must not be null! " );
290
+ Assert .notNull (pageable , "Pageable must not be null" );
291
291
292
292
if (pageable .isUnpaged ()) {
293
293
return PageableExecutionUtils .getPage (all (), pageable , this ::count );
0 commit comments