File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert Expand file tree Collapse file tree 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) {
14701470 return mappedName .toString ();
14711471 }
14721472
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 ();
14851474 if (property .isMap ()) {
14861475
14871476 mappedName .append ("." ).append (nextToken );
14881477 currentIndex += 2 ;
14891478 return mappedName .toString ();
14901479 }
14911480
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 ;
14931488 return mappedName .toString ();
14941489 }
14951490
You can’t perform that action at this time.
0 commit comments