File tree 1 file changed +8
-13
lines changed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert
1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -1470,26 +1470,21 @@ protected String mapPropertyName(MongoPersistentProperty property) {
1470
1470
return mappedName .toString ();
1471
1471
}
1472
1472
1473
- int i = 1 ;
1474
- String nextToken = pathParts .get (currentIndex + i );
1475
- if (isPositionalParameter (nextToken )) {
1476
- while (isPositionalParameter (nextToken )) {
1477
- mappedName .append ("." ).append (nextToken );
1478
- i ++;
1479
- nextToken = currentIndex + i < pathParts .size () ? pathParts .get (currentIndex + i ) : "" ;
1480
- }
1481
- currentIndex += i ;
1482
- return mappedName .toString ();
1483
- }
1484
-
1473
+ String nextToken = nextToken ();
1485
1474
if (property .isMap ()) {
1486
1475
1487
1476
mappedName .append ("." ).append (nextToken );
1488
1477
currentIndex += 2 ;
1489
1478
return mappedName .toString ();
1490
1479
}
1491
1480
1492
- currentIndex ++;
1481
+ int i = 1 ;
1482
+ while (isPositionalParameter (nextToken )) {
1483
+ mappedName .append ("." ).append (nextToken );
1484
+ i ++;
1485
+ nextToken = currentIndex + i < pathParts .size () ? pathParts .get (currentIndex + i ) : "" ;
1486
+ }
1487
+ currentIndex += i ;
1493
1488
return mappedName .toString ();
1494
1489
}
1495
1490
You can’t perform that action at this time.
0 commit comments