File tree 1 file changed +3
-3
lines changed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1370,10 +1370,9 @@ public KeyMapper(String key,
1370
1370
MappingContext <? extends MongoPersistentEntity <?>, MongoPersistentProperty > mappingContext ) {
1371
1371
1372
1372
this .pathParts = Arrays .asList (key .split ("\\ ." ));
1373
- this .currentPropertyRoot = pathParts .get (0 );
1374
- this .currentIndex = 0 ;
1375
1373
this .iterator = pathParts .iterator ();
1376
- this .iterator .next ();
1374
+ this .currentPropertyRoot = iterator .next ();
1375
+ this .currentIndex = 0 ;
1377
1376
}
1378
1377
1379
1378
/**
@@ -1385,6 +1384,7 @@ public KeyMapper(String key,
1385
1384
protected String mapPropertyName (MongoPersistentProperty property ) {
1386
1385
1387
1386
StringBuilder mappedName = new StringBuilder (PropertyToFieldNameConverter .INSTANCE .convert (property ));
1387
+
1388
1388
boolean inspect = iterator .hasNext ();
1389
1389
1390
1390
while (inspect ) {
You can’t perform that action at this time.
0 commit comments