File tree 2 files changed +7
-3
lines changed
main/kotlin/team/yi/rsql/querydsl
test/java/team/yi/rsql/querydsl/test/javatest
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -256,9 +256,13 @@ class QuerydslRsql<E> private constructor(builder: Builder<E>) {
256
256
fun operator (vararg operator : RsqlOperator ): BuildBuilder <E > = this .apply { super .rsqlConfig.operators = operator .toList() }
257
257
fun operators (operators : List <RsqlOperator >): BuildBuilder <E > = this .apply { super .rsqlConfig.operators = operators.toList() }
258
258
259
- fun fieldTypeHandler (vararg typeHandler : Class <FieldTypeHandler <E >>): BuildBuilder <E > = this .apply { super .rsqlConfig.addFieldTypeHandler(* typeHandler) }
259
+ fun fieldTypeHandler (vararg typeHandler : Class <out FieldTypeHandler <E >>): BuildBuilder <E > = this .apply {
260
+ super .rsqlConfig.addFieldTypeHandler(* typeHandler)
261
+ }
260
262
261
- fun sortFieldTypeHandler (vararg typeHandler : Class <SortFieldTypeHandler <E >>): BuildBuilder <E > = this .apply { super .rsqlConfig.addSortFieldTypeHandler(* typeHandler) }
263
+ fun sortFieldTypeHandler (vararg typeHandler : Class <out SortFieldTypeHandler <E >>): BuildBuilder <E > = this .apply {
264
+ super .rsqlConfig.addSortFieldTypeHandler(* typeHandler)
265
+ }
262
266
263
267
fun dateFormat (dateFormat : String ): BuildBuilder <E > = this .apply { super .rsqlConfig.dateFormat = dateFormat }
264
268
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public class QuerydslRsqlTest extends BaseRsqlTest {
34
34
@ Autowired
35
35
private EntityManager entityManager ;
36
36
37
- private PathFactory pathFactory = new PathFactory ();
37
+ private final PathFactory pathFactory = new PathFactory ();
38
38
39
39
@ Test
40
40
public void shouldReadRsqlConfig () {
You can’t perform that action at this time.
0 commit comments