Skip to content

Commit 756f44d

Browse files
author
mhewedy
committed
fix in expr when user passing the correct type
1 parent d294b1a commit 756f44d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ For spring-boot 3.x:
6363
<dependency>
6464
<groupId>com.github.mhewedy</groupId>
6565
<artifactId>spring-data-jpa-mongodb-expressions</artifactId>
66-
<version>0.1.3</version>
66+
<version>0.1.4</version>
6767
</dependency>
6868

6969
```

docs/include.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:author: Mohammad Hewedy, The Spring Data JPA MongoDB Expressions Team
2-
:revnumber: 0.1.3
2+
:revnumber: 0.1.4
33
:jsondir: ../src/test/resources
44
:sectlinks: true
55
:source-highlighter: highlight.js

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>com.github.mhewedy</groupId>
1414
<artifactId>spring-data-jpa-mongodb-expressions</artifactId>
15-
<version>0.1.3</version>
15+
<version>0.1.4</version>
1616
<name>spring-data-jpa-mongodb-expressions</name>
1717
<description>Spring Data JPA Mongodb Expressions</description>
1818

src/main/java/com/github/mhewedy/expressions/ExpressionsPredicateBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ private static Object convertValueToAttributeType(Object value, Class javaType)
330330

331331
@SuppressWarnings({"rawtypes"})
332332
private static List<Object> convertValueToAttributeType(List<Object> values, Class javaType) {
333-
if (values == null || values.isEmpty()) {
333+
if (values == null || values.isEmpty() || values.get(0).getClass().equals(javaType)) {
334334
return values;
335335
}
336336

0 commit comments

Comments
 (0)